friendly permalinks, closes #19