Remove most jQuery dependencies. Still working on $.extend() and $.when().