refactored kill api/ui for json/ajax, fixed up test
updating travis and fix bug in test script