Refactoring work

- Updated debug options
- Reworked context creation
- Updated require callback
FIX #1: Added basic parts of common-js specification