[Core,Applications] Adds Comments popup to application detail view.

* Fixes AbstractRatingEntity: infinite loop when calculating average.
* Refactor CommentForm: No need for base fieldset.
* Adds javascrprt handling of comment popup.
* Adds user reference to comment entity

(references gh-15)