API updates mostly patched.

- Fixed Media tests
- Refactored Media model - it is now a proper ng module
- Patched various broken features because of API update
- Refactored rails resource - the case-changing functions are now exported in their constant so unit tests can use them
- NOTE: server side error means audio d/l failing. Not fully tested yet.