API changes, npm publishing

Changed module to export AMI function directly, e.g.
  var AMI = require('./ami').AMI
becomes
  var AMI = require('./ami')

Changed AMI constructor function to use a single object parameter

Added package.json, LICENSE and changed examples accordingly.