changes to enable in memory hosting of web api