0.9/unipackage support

wanted to use this in my Cordova project, so whipped up the necessary changes to package.js :smiley_cat: 
Hi @lalomartins its alright - did not mean to offend you - just doing code review,

Theres a lot of opinions about testing - some argue that `undefined` could have been set to something else than undefined making it impossible to have a safe test.
the typeof test is ugly and long but its safe - also when testing globals.

Personally I think its crap code if people actually set `undefined` to something else than the actual undefined - but again its allowed in js so they should have the freedom.

So in this case I argue that we assume the `api` scope exists and therefor we can assume that any key value is either falsy or not (if the api is supported) simple, short and safe.

When using the term "safe" its as safe as can be in js,

I'm personally holding my breath a bit regarding the new package system - the api can still change

Kind regards Morten