Fix borked routes containing :params

Whoops! I got a little excited earlier and made a small mistake when refactoring the code. The `when-first` tripped me up.

Anyway, I added tests! So yeah, there's that. Just run `lein run-tests` and that will recompile the code and run the tests. I'm sure you already have `phantomjs` installed.