Added _build_site_api and run_page_enabled functions, expanded __init__.