Improved the resource handling in EmbeddedServer.

Added support for resources compiled by m2e-wtp.