Move utility functions from redmapel library and generalize 'em a bit.
Bump project minor version (now 0.1.5) since we've added some new public functions.