add gradle support

Add gradle support. android studio supported at the same time.
A script for deploying library to maven was also included, but not configured yet.
It would be very nice if you will publish the library to mavenCentral.