Updated permission models
Added permissions library

for central access and easy permission-handling
Beautified blog controller.