Adding to WebApi

Implement Error handling, tracing, adding to DI, and persistence.