Refactor post and draft object creation

De-duplicate object creation between posts and drafts. Inject the name
dependency through a parameter
Modifying enumerator for 1.8.7
Merge pull request #1779 from mojombo/no-duplication

Refactor post and draft object creation