Fix problem with levelup skill buttons

Display level up skill button only when having skill points
Fix storage parameter possible error
Change what triggered resurrection menu
Support for other item pickup errors
Encode filenames in XmlHttpRequest
Fix storage reference problem