Move interfaces into separate file. Replace *bool to chan bool in

ApplicationUpload and  drop useless defer().