Bug 959118 - Part 2: Support layers dump on the viewer

1. Handle layers dump and layerscope packets.
2. Display layers dump and layerscope.