Android client, refactoring

- Moved declaration of click listeners to XML
- Shwitched to android built-in Base64 library
- Code reformatting