Implemented static files hosting, made necessary refactoring.