More fixes to get empty profiles and more restful API responses working.