End of day...trying to move major function out of tool

Moving create sde workspace business logic into separate function...with
some difficulties. It is not finished, but it is the end of the day.
Until tomorrow...