Calculate resource path with servlet context in mind.

#19