Refactor Express to use declarative route building.
Fix error thrown when compiling empty Gistbook.

Resolves #303