Split server into separate files