Make permalinks relative

As a step towards saner URLs (#275), make permalinks relative. The
browser will figure out the rest.