Fixing tests
First implementation of history api.
WIP: api views draft for obtain history.
WIP: add page number parse method.
WIP: intial work on query services functions.
WIP: woking on api.
WIP:
WIP:
WIP
WIP:
WIP
WIP
WIP: change migration to new model.
WIP: Fix tests after the rebase of master