Add basic gradle library support

I still can't get it to work, I don't know why. Maybe it's because of the directory layout. I tried to follow the android gradle docs, taking ABS as a reference.