Added code to register instances of app service with the SS container so they don't get recreated per request.