added streams package
implemented server to client messaging (error, warning, success, info)
code restructuring