Code refactored.
Code simplified. Geoviewer removed. Interaction between front and back ends improved.