moved some api functions form mainpage to library and libraryFilter, so the html startpage (browser) will work even if another serverPage is active;