from http://www.asp.net/web-api/overview/hosting-aspnet-web-api/self-host-a-web-api