Various fixes and improvements.

* Load cascade rules or sentences for the webapp.
* Better parsing of layers in webapp.
* `DebugPatternTagger` for troubleshooting taggers.