Add some api to get the current form.

Additional this extracts the client singleton into a function.