#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;
```