WebDev already has functionality to do this. We should move it into a simple package and support it in our server as well.