Uc 93 Fixing error handling in UserProfilePage and beyond

The new "darwin" modals were never updated to be compatible with the global notification system, which should display notifications inside modals when they are present as opposed to at the top of the page. This PR fixes that, with a focus on the user profile page JS.