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.
This might fail if we have `ORM` instead of `orm` in the Auth config file.