Fixed #277: automatic ID. Cleaner API for identity API and also allows to specify custom fields.