Adding batch controller.
Refactoring the config class and adding a console class, not batch.
Merge pull request #2 from volnix/batch_controller

Move resolvePath() and getEnvironment() to Config class. Add Console controller.