MainController Servlet upgraded

Now, MainController is organized in such a way that new functionality
can be easily added. Scope of TimeSeriesBeans was changed to "session".