Implement file dialog and color chooser for <input> tag

Fixes #454 
Fixes #701