update codes to support two ways of running frontend trigger procedures: 1 - run it implicitly by HStoreSite (Server way); 2 - call it by client explicitly (Client way)