Indonesia has emerged as a primary battleground between democratic and autocratic visions of Islam in the 21st century.