made global function serve_file for mod_auth_token url generation
added thumbnail support
made changes to version check function. will advance this later.
bugfix for upcoming (needed static keyword)