Added download file feature.

Fixed a few bugs too.
More extensions added.