Improved version detection regex
Fix ApiKey.authenticate not being a class method
find -> find_by
Add tests for write_message Api call
Remove deprecated methods
Add tests for cast_vote API call
Refactor api spec