Optional format parameter
Created by: psujohn
I added an optional format parameter since a lot of the routes we use from ajax require a ".json" or such at the end. If it's not included there's no change, if it is it just gets appended at the end of the route.