#17 #15 added amd support and configurable treshold

This add amd support and "node-like" modules (for using with browserify).

The exported object can also be use to configure the event:

```
shake.threshold = 1;
```
Nit: can you please use 4 space indentation for consistency?