Fixed admin being broken by previous commit
Ported Pages
Ported Category
Fixed some related bugs
Code formatting
Ported Question and fixed related bugs