Simplified build.gradle with new features provided by the gradle plugin
Removed code depending on legacy interfaces
Fixed height measurements
Removed some unused classed an made date selection use RPC