http API: update catalog if it's older than 24h
http API: define client ID
http API: finish catalog loading routines, add DEBUG mode