add download function
Merge branch 'reorganized' of https://github.com/hjwdzh/popush into reorganized