Implements a more permissive way of detecting command-line execution.
Change /api/task/* -> /api/tasks/*
Merge pull request #490 from protich/feature/cli

SAPI cli Interface