Miscellaneous set of fixes

Include gradle build files updates (now requires android-studio 0.5.1+).
Typos fixes, classes and methods cleanup.