Place the filemanager in own file.
Moved some indenpendent methods from indexmanager into a new packaged called utils.