HttpMiddleware to login a user in a REST way, add plain JSON setter&getter

Split of #28 

- [ ] Tests

cc @tanghus @DeepDiver1975 @Raydiation