fixed auto delete issue
Fixed 1302 re-occuring bug
prettify them codes
finally fixed ontime issue #1347
Merge @technowar's changes

* technowar/develop:
  Users field validation on gender and user role

Conflicts:
	app/scripts/views/employees.js
fixed date picker issue when dismissing the date layout and also added autoclose feature
updated Gruntfile, and app.js
* added middleware method for defaulting all routes to index.html
* modified rendering when user is logged out
added temporary user login persistency