Code adapted to current version

Added login with email support. It works for accounts with the same email but in case of same email and password, it logins at the first match.

- In order to translate email to UIDs I created a new function at the manager.

- Converted the single UID variable to an array of UIDs.
Merge branch 'master' of https://github.com/adri32/core