Removed distributed versions of old fhir client. Added missing requires and defintions where needed to utilise YUI modules. Replaced usage of jquery with Q for promises and Y.io for ajax.