lance - mail setup and IOC setup for WebAPI

Not completed, not ready, but good progress.