Html type provider

Several fixes to issues #527 #533 #531 and #541, I haven't managed to fix the ebay crash yet thou.