Use URL rewriting instead of query arguments

Adds some URL rewriting magic to get rid of the nasty query variables.  Fixes #24.