Document Identifier
Make Pattern an entity
Rename ContentPiece to Document
Move rules stores into stores directory
Move helper classes into a helper directory