-- CRM-12941, CRM-12863 & CRM-12824 changes made as per the comments

----------------------------------------
* CRM-12941: Redirect to proper contact tab after saving profile
  http://issues.civicrm.org/jira/browse/CRM-12941
* CRM-12863: Hide profile titles in HR tabs
  http://issues.civicrm.org/jira/browse/CRM-12863
* CRM-12824: Override message for empty tabs
  http://issues.civicrm.org/jira/browse/CRM-12824

1. Made use of 'onPopupClose' to judge the redirection with its value as 'redirectToTab'. Also, handled the url(civicrm/profile/view) with conditions checking if onPopupClose is not set or if its value is 'redirectToProfile'.
2. Removed the tabDisplay condition that restricted the display of profile title. Will work on it after  CRM-12865 is done.
3. Removed the old message that was getting displayed for the empty records case. Now, the new message will be displayed in both tab and standalone mode.

This fix also includes CiviHR PR https://github.com/civicrm/civihr/pull/24