[WIP] User Authentication, API Handling

This is the best way to export objects I've used so far, tried multiple ones, but this enables me to use the function as a constructor, and still serve as an object.
This style might not be needed here, but i think using the same coding style across the app makes a good way to collaborate with others.
I'd be glad if you recommend a better way to do it, while being able to use a constructor.