Added privilege hash calculation in User. post save.

ToDo::
1. Use it in authorization middleware,
2. Improve its performance.