Issue #155: Convert user entity into a classed object

PR for https://github.com/backdrop/backdrop-issues/issues/155.

Issue #1361228 by marcingy, Niklas Fiekas, fago, cosmicdreams, aspilicious, tim.plunkett et al: Make the user entity a classed object.