add amd
add main entry point
Merge pull request #12 from alanclarke/master

add support for amd & module entry point in package.json