Added http_auth decorator and adapted tests.
Corrected imports