add form with switch to go between live and test RESTful API; need handler to utilize config value