Added keystore option. Should be used for testing purposes only.
Changed checkout file to use metadata.path first.
Added missing command to update_revision
Added download flag to stat.php to trigger the download function in browsers.

Closes #16