Functionality for adding teams when creating / editing group.

This functionality is now provided by using nested forms
with Cocoon. This also required some rewiring of models ans
views.

There are also changes related to JQuery and Angular.js. Neither
is currently used, but Jquery.validate has been evaluated
and it is likely it will be used for some forms in the future.