Update cache keys to use JSON
Description
Update the cache key to use JSON as per https://mail.gnome.org/archives/buildstream-list/2019-February/msg00035.html
Changes proposed in this merge request:
- Add
ujsondependency - Switch cache keys to use
ujsonrather thanpickle - Update the cache key tests