making portable mode work, moving src/* to outside, moving django and glade to ui, and other fixes