Algeria's army, the heart of an opaque regime, exercised power from the shadows until it was thrust into the limelight with mass protests and the April departure of president Abdelaziz Bouteflika.