Proper return codes for cocaine tools.

* now returns abstract '1' when some error occurs.
TODO file added.