Change build definition so that the library can be published on bintray

Also upgrade scala version to 2.11 and update test dependencies