More device policy work: clarify password modes, monkeying.

Clarifies what the password modes mean, renaming them to "quality"
and updating their documentation and the implementation to follow.

Also adds a facility to find out if a monkey is running, which I
need for the api demo to avoid letting it wipe the device.
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java
index c2c6e76..b723dcd 100644
--- a/services/java/com/android/server/am/ActivityManagerService.java
+++ b/services/java/com/android/server/am/ActivityManagerService.java
@@ -8081,6 +8081,14 @@
         }
     }
 
+    public boolean isUserAMonkey() {
+        // For now the fact that there is a controller implies
+        // we have a monkey.
+        synchronized (this) {
+            return mController != null;
+        }
+    }
+    
     public void registerActivityWatcher(IActivityWatcher watcher) {
         mWatchers.register(watcher);
     }