This is an example usage of the PHPAuth class, using an AngularJS based frontend communicating with a Flight based backend