Various fixes. Write pid for cuckoo process, limit number of taks displayed in UI, fix for api.py etc.