Add some emulation of task running
Fixed upload issues, now upload work fine within tomcat