Added (extremely sloppy) framework for webapp