Revert "Fixes #4 by adding transform middleware to routes. Also, code cleanup."

This reverts commit 2e20cff502c258e3435883d4155fce1a5bc84cbc.