Added promises module.
Added necessary TSD defs.
implemented a base api that will limit the number of requests.