Relativize href and src attributes, add staging script, clean up tasks