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

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