Added lean query support. Passport Local Api Key compatibility implemented.