Implemented resource-interception

Also now using boost and moved the HTMLWidget class to its own file.