Thirty-one people have been killed and more than 7,000 arrested in weeks of political unrest in Bangladesh, as the country's opposition mounts mass protests demanding fresh parliamentary elections.