[fix bug 847458] Added form to add/edit votings.

* Add/Edit/Delete voting
* List voting template optimization
* Javascript changes in:
  * Edit report
  * Edit events
[fix bug 847462] Mail functionality for voting system.