Cuts down the code in the data access layer by using a generic DAO implementation.
Closes #444 by sorting names of teams and their applications on the permissions page.