Removed API calls in favor of socket.io commands

This code was left over after merge with diversario pull request.