Improve url handling.
Add mailbox support into Profile.