Refactor charts resource. Improved charts code

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Show commit sha for build duration. Fixed tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>