Updated API end-points and added basic CLI tool.