Fix middleware ordering + add caching to {parties,representatives}#show