Merge pull request #5 from palarson/jb

Password/config sending
Add android studio gradle
Merge pull request #6 from palarson/jb

Minor library changes, fixed thread shutdown bug