Implemented more or less adequate Facebook authentication - requires refactoring