Fix dot notation on database library
Add facebook library and fix facebook authentication
Set the user straight away.

Don't rely on the isLoggedIn function to be called first
Require the curl extension