Implement 'createWork' command

Also use angular.mocks in tests
Rename files and move tests into app folder
Move common test functionality into test helper file
Move module definition into app root folder