Login and admin validation can now return JSON
Login and admin validation can now return JSON

When used with REST like functions that should return JSON, the functions for login and admin validation now have an additional parameter to detect whether it should return JSON or not.

ldbib/proxive,ldbib/proxive