Proper name for test DocType
Simplified doc_type handling in Search

Also allow non DocType subclasses to register callbacks