Made the URL to call the backtest parameterized, and then made it robust
so it could handle a variety of inputs and still get the user to where
they intended to go.