complete refactoring to models. Correction of an bug in http client requests with Hawk protocol.