Refactor the code to add an issue directive.
This moved around some code to get common issue card code into it's own directory.