refactoring - application folder structure

move code to lib
remove unused views folder on the server
gitignore .idea folder
add grunt support
add jshint support