added authorization, sign up, in and out. fixes #16 and #17