Templater issue fixed. Route order fixed.

Use input/output stream api.
Use dynamic to fix issue with DataTable being ignored.
Routes must be ordered by group number in segments.