Add all logic for edit profile pages in JavaScript

You need JavaScript to open the editor interface so let's just
use JavaScript to do the edit itself.

Bug: 57120
Change-Id: I267ff48b506f89719757e7fd20b72b1e36e69b3e
Merge "Add all logic for edit profile pages in JavaScript"