split app code into its own module
split routes into their own module
create pipe() method for broadcasting from sockets