Moved larger listener function out to new method

- Migrated the comment:save:success method out to its own seperate
  function and called it from success of event handler.
- Minor cleanup.
Merge branch 'sprint6' of https://github.com/Innovation-Toolkit/midas into sprint6

* 'sprint6' of https://github.com/Innovation-Toolkit/midas: (24 commits)
  Fix nasty bug with PUT /user
  Remove debug console.log statements
  Quick fix for part 8, issue #17
  Need to use popovers.*
  Re-add timeago (see Issue #17)
  Fix typo in cleanString...
  Fix comment regression for empty comments
  Fix date filter to ISOString
  Sort events by date, only show upcoming
  Allow tags to be configured by instance
  Fix 2-column text entry box
  Refactor tags to app (tags/show)
  Pass params to souces when querying
  Fix typo; fix policies for likes
  More policies to prevent malicious data access
  More policy work for tasks
  Implement tag functions for tasks
  Policy updates to control access
  Add a policy for task authorization
  Create utils; update comments to support tasks
  ...