Port range slider and date picker

As for now it works ok, but there's some improvements to be made. Some cleanup, doxygen code, maybe include flot as a library instead of in the code.

This is also a pull request for code review.