Implemented the lib.io.swap_extension() function.
This is confirmed to be fully functional by its four unit tests.
Authored by: bugman 2014-12-18
Parent: [r27123]
Child: [r27125]