limit imap users and create new mailbox string

This should fix #1902. A very simple yet usable approach. Also will it be possible to use specific url schemes mentioned in the same issue.
apps should not access database tables of other apps/core directly - in case we change the schema you are doomed. In addition this table is used by owncloud core user management only. No other auth mechanisms are allowed to write to it.