Clean up imports, tests
Add permissions for API views
Refactor cast vote views to include shared behavior between api/normal view
Add tests, fix views permissions
Test to make sure vote is closed when it's cast