Updated AuthComponent and friends to use new ORM and other 3.x changes.