Made some major changes.

Pages/views are created dynamically according to json objects parameters
etc...