Not-authed middleware, fixes #361
Fixed some Date stuff