Made the FileManager a singleton so it's easier to use and more consistent with the rest of the API.
Socket test out of the unittests
Fixed bugs found by PyLint
Fixed minor validation bug.
Some improvements to the tests.
Fixed tests.