21CMMC: an MCMC analysis tool enabling astrophysical parameter studies of the cosmic 21 cm signal