Moved voting logic and template into angular directive.
Temporary removed 'rating' for comments and proposal.
Added 'type' for the proposal in the api.