Implemented basic hook functionality and updated the buildURL function to allow absolute path generation without a webdir specified.