Abul Hasan marked his Test debut with a 106-ball century from number 10 as Bangladesh reached 365-8 on day one against West Indies in Khulna.