Added caching system

Added a system which caches BLE discoveries on a scan-by-scan basis.
Added stubs for JSON-conversion functions.