Add unit-tests for the delete project mapping via the UI
Use 401 as error code if the user is not an admin

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Add unit-tests for the browse_logs method
Small pep8 fixes