Added custom capability support

Also changed the default capability from project to post as requested.