Improve performance

We've made a few performance tweaks here. We've also refactored the
groups dropdown to be much faster than it was before.
Merge pull request #618 from loomio/improve-performance

Improve performance