Clean up

- Code style clean up: fix white space and formatting
- Update project.properties
- move jar files to /libs folder to be found by IDE automatically and update permissions
- change permissions to init.d script to be executable and fix a typo
- tons of refactoring to bring it more in line with Android code style guidelines
- removed some redundant initializers, return statements and continue statements.