Removing dependency on AMD to make testing in QUnit easier
Adding core tests

Created and added tests for the core engine. Moved instantiation of
objects to prototypal method.
Adding unit tests