Refacoring and build improvments
Added first web server prototype and REST support