BISERVER-8738 - Changed sync to async calls. Added spinner via pen.require. Templates moved to a new file and being used with pen.require