Added support for appPools & virtual directories in XMl configuration.

http://blogs.msdn.com/ramesh_r/articles/170665.aspx