Adds upgrade script and fixes system to give 'posted' date & html5 mimetype to files [#833 state:resolved]