PRD-4451: Sequence-DataSource editor fixed. 

This also cleans up a bit more of the code, by moving shared code that has no dependencies (and that is likely to never change anymore) down to the shared libraries.