Fix team invitation 500s - WIP-331

Work for: https://assembly.com/coderwall/wips/331

* Fix team invitation 500
* Add team members partial
* Add controller + request specs for invitation page.
It's not important enough to warrant waiting. There's a lot of legacy syntax that we'll get to eventually.