Bug Fix & Grudle

Fixed bug in URI split. To get the key it's [3] not [2] which was returning the collection instead.
Fixed Grudle build as well to use Java 1.7
Add bin to .gitignore