Added jsapi-mock and unit tests for jsapiLoader

@settinghead @donnapep @stulees please review & merge. Thanks.