Add a `keys` function on api for the repl.
Fix API resolve bug.
Add an `apis` function on key for the repl.