Added ESign api and implemantion of ESign on forms and encounters