[WIP] User Authentication, API Handling

This fails the app server if not commented, since there is no modules set-up yet. But it is probably needed for front-end guys, so i thought I'd just leave it for whomever wants to work on front-end so he can use it. I will remove it however, and put it in the docs I'm gonna write today.