-- CRM-12823 created a popup for "Add New Record"

----------------------------------------
* CRM-12823: "Add" should use same popup as "Edit" in multi-row custom data tables
  http://issues.civicrm.org/jira/browse/CRM-12823

1. The js for dialog box i.e. the formDialog js function in the code, was getting called only when $records was set. So, in a case where there is no records and we have the "Add new Record" button, the js wouldn't be called. So, in the fix I placed the js function outside the "if" condition so that its accessible in both cases. And I added the class "action-item" for "Add New Record" button so that the js function would be called on its click. And in the href, I added the snippet as 1 and context as "multiProfileDialog" so that the validation js and ajax call from the file Dynamic.tpl file will be called same as the case when we click on "Edit" link.
2. After clicking on the "Add New Record" button, the page gets redirected to the profile edit mode page instead of the contact tab page. Same is the case when we click on edit link and on cancel button. The fix for that is not included in this PR. I am working on that.