Allow project templates to be bundled separately

This changeset moves the various FreeMarker templates out of the ADT
plugin and over into the tools install area. The code to instantiate
templates is simplified a bit now that it no longer needs to both
handle files on disk and files read out of the .jar.

There's a new first page to the various template wizards which is
shown if the tools are not up to date (specifically, if the
$SDK/tools/templates/ directory does not exist). This page explains
that the tools have to be updated, and the Next button is disabled
until they are up to date.

This CL also contains some other tweaks suggested by Roman to the
activity-to-layout name mapping and misc code changes.

Change-Id: I3bc65f54a6b79bbeedfb917a9d34ec0d312f3526
diff --git a/build/tools.atree b/build/tools.atree
index 16fdaf5..d5d6c08 100644
--- a/build/tools.atree
+++ b/build/tools.atree
@@ -146,6 +146,13 @@
 prebuilts/tools/common/proguard/proguard4.7/bin/retrace.sh     tools/proguard/bin/retrace.sh
 prebuilts/tools/common/proguard/proguard4.7/src/proguard/ant/task.properties  tools/proguard/ant/task.properties
 
+# Templates
+sdk/templates/projects/NewAndroidApplication                   tools/templates/projects/NewAndroidApplication
+sdk/templates/activities/BlankActivity                         tools/templates/activities/BlankActivity
+sdk/templates/activities/MasterDetailFlow                      tools/templates/activities/MasterDetailFlow
+sdk/templates/other/CustomView                                 tools/templates/other/CustomView
+sdk/templates/resources                                        tools/templates/resources
+
 # SDK Controller
 sdk/apps/SdkController       tools/apps/SdkController