Permalinks

@timoxley @sidorares fyi, a bunch of internal changes in here too, including moving partials to have _ as a prefix