Fixes #23.

Moved lines 162-167 to end of index.js.  This means that the regex for backwards compatibility lets all other routes have precedence, so it only catches things that fall through the cracks.