Fixed ptr-to-ptr support, added layer support

Pointers to pointers are generally, in reality, pointers to an array
of pointers. HtmlWriter.cs has been updated to reflect this.
Also added layer support; number keys change layers, shift+number keys
enable/disable layers, and alt+number keys access layers 11-20.
Also added potential support for getting lighting/transparency from the
material.