Moved everything non-UI into static lib
moved everthing non-UI into static lib