added sqlite timeout to wait for a db lock.
made install.php fail secure. if config.php exists it won't continue unless it is deleted.
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)
created api to get latest
made check_version handle being ahead
Merge branch 'master' of uberdiesel.github.com:uberdiesel/cloakstream into random-tv

Conflicts:
	index.php