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