Implements Http repository class

Note that it still need a lot of logging and testing