Updated gradle build files to provide support for android-studio v0.6.0
Merge pull request #795 from ne0fhyk/upstream_fix_gradle_update

Gradle build files update to support android-studio v0.6.0
Merge branch 'master' of https://github.com/DroidPlanner/droidplanner into drone_refactor_osm
bug fixes.
Bug fixes for the editor tools:
- saved last selected editor tool so it can be retrieved after the fragment is recreated (i.e: after orientation switch). Before the selected tool would reset to the marker tool on orientation switch.
- exported commonly used code into functions.
- updated the editor tools view to reflect the selected tool after orientation switch.
- updated the editor activity to update the state of the tools on resume.
Bug fixes for the editor tools item detail window:
- updated editor activity so that reference to a displayed item detail window is retained across activity lifecycle events. Before that update, dismissing an item detail window after a lifecycle event (i.e: orientation switch) would leave the mission item in a selected state (instead of deselecting it), among other possible issues.

- updated the mission detail fragment to notify its listener/parent when it's being dismissed, when shown as a dialog.
Merge branches 'drone_refactor_osm' and 'fix_editor_tools' of https://github.com/ne0fhyk/droidplanner into drone_refactor_osm

Conflicts:
	Android/src/org/droidplanner/android/activities/EditorActivity.java
	Android/src/org/droidplanner/android/fragments/EditorToolsFragment.java
	Android/src/org/droidplanner/android/proxy/mission/item/fragments/MissionDetailFragment.java
updates resulting from the merge with the fix branch.
Merge branch 'drone_refactor_osm' of https://github.com/ne0fhyk/droidplanner

Conflicts:
	Android/src/org/droidplanner/android/graphic/map/GraphicGuided.java