Queries get saved to and parsed from the URL

fixes #204 
throw `try`/`catch` around this in case the JSON is invalid.