CRM-13234 make profile getfields action return data about profile
NB - there is a lot more code in the api here than I am happy with - but it will take a lot of work to extract this out of the underlying profile BAO & Form classes. As there are now tests in place for this we can work to tidy it up at the next sprint
CRM-13234 add test to lock in profile set as working
Merge pull request #1467 from eileenmcnaughton/CRM-13234-actual-changes

CRM-13234 make profile getfields action return data about profile