add auto embed js options
* added s3 support
* support config via gradle task to simplify configuration