fix #1051

* FIX: use module pattern for javascript library
Therefore, refactor the main library and use a few submodules.

* FIX: minor bugs (date picker was not visible, styling bug in section
view, missing zebra-style in records table)