Add anti-hotlinking support and a MySQL framework

This system allows for hotlink prevention and useage of ads (with a direct link) To prevent hotlinking, disable indexing of your directories and then block all attempts to access any file thats not in resources/ or that is not index.php getdownload.php or download.php. With these changes, the md5 is also shown at download time and a ten second counter starts for the download. This also adds a MySQL backing and framework that allows for the addition of download counts and file information storage so that the server doe not generate file information every time that the php is generated.