initial commit of current entries functions

These were originally in the bitbucket repo in multiple files - now all
in the .module file.