Add new task function, move ruby files, templates, and data into lib directory