Fix environments edit page

* Edit buttons were not working due to ERB (<%== instead of <%=).

* Similarly, environment variable add was broken (<%= instead of <%-).

Both did not have tests. Now they do.