Reworked repositories

The controllers were disposing the repositories which isn't their
responsibility, so this was removed. Cosmetic enhancements and some
package updates were also made.