Added support for total on API

Added a generic function to load storage backend
Added storage hooks to API
Added total calculation on backends
Moved NoTimeFrame exception to base code

Change-Id: I917335aaeb01b58c1cbb86ae63b260d3f91a7ba7