Fixed more chat box and locomotive relay stuff, moved APIs around.