api/auth_test: removed forgotten print from test
api/auth, auth/user: moving allowedApps function to user

Making it public, since we changed it's package.

Also testing the bug #315. (not fixing though)
auth/user: using Teams method to get teams instead of querying the db by hand

Also refactoring AllowedApps method a bit.
auth/user: created AllowedAppsByTeam method in user

Relates to #315
api/auth: using AllowedAppsByTeam in removeUserFromTeam

Also fixing expectation in related test.
auth/user: go fmt
api/auth_test: fixing test weird behavior.

After adding a new test, one of the tests of RemoveUserFromTeam started
failing. After some investigation, I found that the problem was in a
test that did not updated the s.team variable.
api/auth_test: removed forgotten print