Change all dependencies in api to static version numbers or git references.
Fix regressions caused by upgrading num dependency.
Remove console.log's.