Build npm

Squashed commit of the following:

commit 4c2323fb91b500219d80d39936756256d87c66a3
Author: Kevin van Zonneveld <kevin@vanzonneveld.net>
Date:   Fri Jan 17 17:06:04 2014 +0100

    Package.json for npm

commit eb20d4f14b1d93369d0b57bad6c58d96ef8b97df
Author: Kevin van Zonneveld <kevin@vanzonneveld.net>
Date:   Fri Jan 17 17:03:17 2014 +0100

    Make output configurable

commit 8a93f35df4faf1f9c6d370cb816d84faf1de4c17
Author: Kevin van Zonneveld <kevin@vanzonneveld.net>
Date:   Fri Jan 17 15:43:37 2014 +0100

    Build npm

commit eed2648c69db863cbbfb518a28fc93da6c4f07ea
Author: Kevin van Zonneveld <kevin@vanzonneveld.net>
Date:   Fri Jan 17 13:08:24 2014 +0100

    First swing at npm build
Merge branch 'master' of github.com:kvz/phpjs