Migration of UI. Query parts commented.
API query functionality added. SiteMap handling migrated.
Migrated API queries.