Catching the login exception and returning false (login failed). Makes the OCS API properly return data instead of printing the exception page.
As discussed we move all old style classes (OC_FOO_BAR) to legacy. Then from there we can evaluate the need to convert them back or if they can be fully deprecated/deleted.