Fixed http transport backend
Refactored tests.
Refactored storages.
Migrate period group from string to timestamp.
Fixed bugs in utils.