Project refactoring

Use gradle wrapper
Use build flavors
Use JDK 7