Added keys.js
Added logs.js
Added env lookup for api endpoint (for future testing). Also added some function fallbacks I don't have to pass 'null' or '{}' when I want to skip an optional parameter