Method for generating URLs from states

I put together a really simple method for reversing out a URL from a state + parameter hash, which should fix #128. If this looks good, I'll use it to implement #16.

@ksperling Let me know if this looks okay or if I missed anything.