Support for Context Path

In an application that I am working on, I need to be able to specify a contextPath to everything. Basically, my application starts on localhost:3000/application. The problem that I have is that I needed a way to add the contextPath to those cartero static resources. 

So, I added a support here. I just dont know if it makes sense to merge in the hook itself, since, there may be better solutions. But since I thought it was easy to add the support, I just did.

Let me know if this can be accepted or not. Thanks.