BZ-8624: add angular util method to mark entire form dirty. We'll be
able to call this when we submit a form.