index.html: change the path of the linked resources

The linked resources (script, style, and html imports) are using
absolute paths, but we are not always being served from the root of the
server. This changes those paths to relative paths in relation to
index.html.