PHP native session  & Linux compatibility when using ORM Auth

PHP native sessions will choke when storing ORM objects with a high number of relationships.  Adding functions to convert ORM user objects to and from arrays.

ORM auth on Linux throws errors on the class case. Update to fix.