middleware is registered in crichton railtie

@fosdev please merge after Crichton PR is merged into develop. Thanks!