scripts/api: refactor API calls.
scripts/app: stub out test calls against API.
scripts/graph: remove alert() incovation.