Moved "current password" field to the top of the edit registration form.

It's the only required field in the form, and this must be immediately obvious to the user. Having the field at the bottom of the form made it easier for the user to forget filling it.
WIP: user must enter his password to cancel his account.

Implemented: when clicking on "delete account" button in the edit registration view, instead of a simple "accept/cancel" confirm dialog a bootstrap popup is displayed, including a form with a field for the password.

Not yet implemented: validate that the password entered is correct. Change acceptance tests in sync with these changes.
Removed unused route.
Added hint text to account deletion form.
Simplified route.
When user submits the "delete account" form, validate that the password submitted is correct.

If the submitted password is invalid, the user account is not deleted and an error is displayed instead.
Added the correct type attribute to buttons in the form-footer of the delete profile form.

Specially important is that the close button has type="button". Otherwise some browsers (at least firefox, haven't tested others) gets confused and think that the close button is actually the submit button. This results in the following bug: when the user writes the password and hits Enter key, the browser activates the Close button (thinking it's the submit button for the form), which actually dismisses the popup without submitting the form.

By adding the correct type attributes, the form is submitted when hitting the enter key with the password field focused, as expected.
Added correct "type" attribute to footer buttons in popups.

The Cancel button has type="button", and each action button has type="submit". This is true even for those cases in which the button is not actually part of a form, for convenience.
Move footer div in popups to inside the form.

This makes more sense, and makes the browser aware that those buttons are actually part of the form, and one of them is the submit button for the form.
Added acceptance tests for the new behavior of the "delete account" feature.

Now the confirmation popup requires entering the current user's password before the account is deleted.