Fix provided/optional scope issues with IDEA 13+

This commit:
* upgrades the gradle version
* update various URLs and names in documentation
* changes the way provided/optional scopes are built
* fixes #22