Implemented a more scalable approach to polylines

Polylines are only loaded when bb intersects viewing area bb. Polylines
are loaded with a proper detail level.
Also added polylines to the widget (fixes #2)