We now only allow certificates ending in .crt to be uploaded and we automatically install the certificate once it has been validated
There are a number of small state fixes in this PR, which result in the build dialog being properly reset state-wise each time it is displayed, thus fixing the state inconsistency. Fixes #2106
Fixes #774