Improve how routes are exposed to the client-side app.
Improve the process for how state is passed along to the client app.

Closes #6