Download handler with the following features:

1. Proper direct link protection
2. Lazy referrer checking
3. Makes sure the file is a real file
4. Semi-proper download count generation
5. File path hack protection (can't use "../" to get system files)