Minor changes

- Fixing (mostly) bad logic in the projects controller for update
- Adding tests
- Removing useless code from media objects controller