created model for text, revision and page
models for page revision and text are associated, getLatestText implemented