Status APi into api.py

This is a cherry-pick from my dist changes. It adds a status feature to the cuckoo api to request the status for the current cuckoo service.