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

Among classes related to Auth only `DbAcl` and it's tests haven't been updated. I have never used it and don't feel like checking it now either :stuck_out_tongue: