Add backbone/jquery typedefs
Port resource.coffee to ts
Port resource types to TS.
Port ResourceLoader and simplify resource fetching interface.  loader.load() accepts a single source string or array.