make live view size more responsive

- The screen size will be 1024x768, if there is enough space
  Otherwise 800x600 is used
- If a user selects a different size, it is saved in a cookie
  and restored when visiting the page again
- The user can delete the cookie by selecting the default res entry
Added sql files for fixtures in database version 4
Fix warnings I introduced in admin auto creation
Function that executes all sql statements in a file, assuming there's one in each line
Added some missing deployment files.
While testing the new initdb script I noticed these files were missing
provide livelog via EventSource

Reformat some code
Added the upgrade.pl script to the list to tidy
Load fixtures into the database when upgrading the database
Initialize the database using DeploymentHandler in initdb.
Added some parameters to the initdb script:
--prepare_init and --init_database to generate the deployment files
and to actually initialize a database
Since now each file is run implicitly in a transaction (rolling back
if there's any error), then I'm removing the explicit transaction
from the job_templates.sql file.
refactor file controller to use Mojolicious::Static

While I was at it, I also changed other things:

* the thumbnail is always scaled to 120x120 - and os-autoinst will prepare one
in the future.
* you can only download ISOs for tests you can access (right now everyone can)
* there is only one test_file function, both serving test files and uploaded log files
Merge pull request #12 from antlarr/master

New initdb and upgrade.pl scripts (both now use DeploymentHandler and support fixtures)
Forgot to remove the explicit transaction from the upgrade deployment file.
The upgrade script now creates the transaction for every file implicitly
and rollsback if there's any error
Merge pull request #14 from antlarr/master

Forgot to remove the explicit transaction from the upgrade deployment file
Merge pull request #5 from asdil12/live_responsive

Make live view size more responsive
Merge pull request #11 from miska/master

Fix warnings I introduced in admin auto creation
Fixed wrong variable name
Renamed upgrade.pl to upgradedb to follow the same naming style as the rest of scripts
upgrade.pl was renamed to upgradedb
so let's rename it inside tidy too
Don't try to load any fixture when there's no need to upgrade
Merge pull request #15 from antlarr/master

Rename upgrade.pl to upgradedb and make it work on already upgraded databases
run tidy script