Fix compile errors.
Rename application -> app, environment -> env.
Fix semantic errors of "Split PulsarApi/Rest.Service() into PulsarApi and PulsarClient"