ui fixes
added support for separated ui server and -mode:ui
moved index under bin
Added support for cmd