Edit forms moved to modal windows; Fix form layouts breaking on errors [MJ-170]

Python tests pass; I didn't touch Javascript tests as I didn't want to step on any toes.

This is the first stage in profile changes. Next will be reducing the number of clicks to create a new item in profiles.