fix adding consecutive activities
fix activity history
clean jshint
add karma unit test for ViewActivities Controller
update bower dependencies
remove boilerplate code in viewActivitiesController
use angular-ui  datepicker and fix saveactivity