Clean up of index.html and add device registration, and GCM lib