configure the app with to use cors before setting up the api routes.

S-48324
include the generated tests directory in our ignore file.

S-48324
WIP: re-organize the client code just a bit to eliminate some duplication.


This commit is using hardcoded url's to grab the template and to query against
for the api.

S-48324