Changed order of deletion on pages

Changed the Page class so that all modules are removed from a page
first then the page is deleted, otherwise nothing will be deleted
because of foreign key constraints
Created Text class

Created the Text class, implemented and tested all methods