Split server module
Rewrite Box and add tests for it.