Moves socket errors to errors.js to prevent cyclic dependencies. I don't we are using ExtendableError in any other place, so I think this move makes sense.
Depends on D7783
Run flow and jest, check if web and landing work.