imap: Introduced imap_is_bchar() function

Added imap_is_bchar() for testing if a given character is a valid bchar
or not.
imap: Added URL parsing of new variables

Updated the imap_parse_url_path() function to parse uidvalidity, uid and
section parameters based on RFC-5092.