Re-arranged packages in mvc
Moved application classes to library, added tests