This commit also format the activity name via external_format_string in some cases
New function data_user_can_manage_entry checks whether a user is allowed to manage an entry. Considering manageentries capability, data_in_readonly_period() result, ownership (determined by data_isowner()), approval and manageapproved setting.