Police officers in Edinburgh and the Lothians have been hailed for their life-saving acts of bravery and commitment to their communities.