Get rid of the fileupload plugin

Because it was definitely not compatible with bs3, and I wet a ton of
problem just trying to make it work normally.
Use a different media root for tests
Make document tests compatible with acls
Missing line (pep8 support)
Create factories for documents
Create special test for limiting query number
Add a cache fragment around navbar
Add an horizontal filter for user groups
Remove useless "Login" link
Don't limit textarea height in forms
Use regular login for admin login