Adding support for calendar queries, and fixing problems for implementations that requires a full email address for the username.