Added support for local proguard. Refactoring buildfile.