CommonJS + other updates
1.Updated to commonJS format
2.support for private documents on iOS
3.Android support
4.Add Permission
Merge pull request #1 from benbahrenburg/master

A few updates for review