Add text input to XBMC.  Clean some legacy hard-coded IDs from templates.  Move some redundant code to central shared lib between client and server.  Refine tests to be === instead of == comparison (strictEqual vs equal).  Minor cleanup.