filestore add-on fixes, PSR-2, cleanup, DB schema etc.
Merge pull request #40 from DarkSide666/master

filestore add-on fixes, PSR-2, cleanup, DB schema etc.