Memberships in api output

Previously memberships weren't being populated in the API output. This change ensures they are populated appropriately and also fixes the myriad of tests that broke after changing the API output.

Closes mysociety/popit#270