fixed metadata.json issue that prevented enabling extension
1) Switched tab indices on labels from 0-based to 1+.  2) Resolved issue where tab redrawing loop would terminate after some minutes (albeit using nasty try/except loop).  3) Cleaned up some comments / other misc