Added in methods that make calls to the Rails api.
Merge branch 'master' of https://github.com/SamM/chatapp