Rename user_bar to header and move to shared
Clean up stats and add integration tests
Only reference the XRAY_SYSTEM env var in one place