restored the company picker to fix the broken form
restored contacts and departments
hid the header and new form box when the pages are called via dialog
Resolved: http://bugs.web2project.net/view.php?id=1175
shifted the deprecated class to the correct location
applied some fitering on the fields
added some  additional filtering to the contact method input;
also resolved an issue where everything was being lowercased... doh.
added the # to the allowed characters so you can use urls with anchors in them
tweaking formatting
killing old/unused code
Merge remote-tracking branch 'upstream/master'