Refactor entryproperties media db button.

Hard-coded input without inline JS, external onclick handler, hide
button on no-js.

References #54