Move util functions into hmutil package
Add crontab generation