Some new pretty major refactoring. Components and modules are now added using an explicit function. There is also a router function for server handlers in place, but it still lacks some functionality.