Continued structural refactoring.
BREAKING CHANGE: Command line interface is now started by cli.py in root directory. filemgr has been renamed to main and moved to cli folder.