Grammar Additions and fixes

- Added more functionality to GrammarParser, Tokenizer now works almost
completely
- Improved performance of Tokenizer
- Fixed a bug in Log file rolling
- Added Factory class for IoC