Support Dirichlet prior distribution

Adding dirichlet to the prior shape option for #568 (closed). Needs to be supported in estimation as well.