Basic auth

I've implemented some basic authentication and authorization now. So only I should be able to post =)