Hygiene: check return types

Also:
 * Update instances using jQuery.deferred to jQuery.Deferred for consistency

Change-Id: Ifdf56f817340d708a8b079d05af10bb992f71dc4
Hygiene: check types are valid in jsdocs

Change-Id: I0b4ee768d673c72002c2fe23e617fb7480934b96
Merge "Hygiene: check return types"
Merge "Hygiene: check types are valid in jsdocs"