Duplicate Posts Function

added duplicate posts function to utilitiy functions per
http://rudrastyh.com/wordpress/duplicate-post.html