Unit tests for ajax dialogs, pull title from ajax content, support full html documents