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. 

I've annotated the parts that have actual changes (as opposed to code cleanup)
Possibly make this a "constant" (really a variable that is more visible either at function level or module level in case it needs to be adjusted a bunch of times