Add stat namespace prefix option for Librato adapter, and minor code cleanup