Check for newer version and write version.properties in launcher
Ignore latest version if it has a launcherGeneration not matching ours

We could also address this by adding a separate latest URL for newer
launchers, but I guess this gives us more options in the future.
Open newly created file automatically.
Use a temp file to write version.properties atomically
Wait 4 hours after a successful latest-version check to try again
Make explicit that we're dumping newlines when reading json from /latest
Updates ref to new sbt-rc version and uses 0.13.0 for all sbt related tests.
port fix from sbt/sbt-native-packager#2929211eeb5465607232eee2b1c31fd34f62d290
Attempt number two thousand to fix windows dev.

* Escape the URI we pass down for the template cache to prevent ClassInitializationExceptions on windows.
Fix build for windows users.
Use license report plugin for reporting licenses.
Record template clones with an API call to typesafe.com
Remove google analytics

Conflicts:
	ui/app/views/application.scala.html
Allow overriding http.address
add CSRF protection to POST

Our PUT should not require it because sites can't trick
a user into a PUT.

Our GET should not require it since they shouldn't have side
effects in theory.

Our JSON posts should not require it since sites can't trick
a JSON content type, but added CSRF to these anyway.
Remove the Events controller which was unused
add a CSRF token to websocket stream URLs

This prevents other websites from opening our websocket.

Conflicts:
	ui/app/controllers/ConsoleController.scala
	ui/app/views/application.scala.html
Merge pull request #190 from typesafehub/wip/havocp-1.0.9-merge

Backport a bunch of stuff to 1.0.x