Added SDEOperation object to enapsulate non-UI operation, added build file, factored code.