implemented all request handlers in ctplot.wsgi
added cache-control headers
replaced cookies by HTML5 local storage