download_id support with better chunksize

now we have chunksize same as block which make it little faster. all
downloads going to have an ID which will be used to stop etc. new
function for xbmc to play and tell the proxy when it stopped playing
which will remove the file and stop downloading.