Closes issue #11 - Moved core components and actions to modules director...

...y, fixed unit tests.