misc cleanup
initial controller thread
added some definitions to rbps_glb.h