Bug 867111 - [Contacts] Refactor with extracting the tags screen from contacts.js.

Extract the tags screen functions into an object for reusing.

http://bugzil.la/867111