major refactoring in config, php modules and server/worker
Merge pull request #18 from zelgerj/master

major refactoring in config, php modules and server/worker