Add a test project for adt completion, while fixing some bugs

Removed the `-l <layout>` stuff from the completion command template,
added support for AndroidManifest content assist, protect against
some other theoretical crashes, etc.