Major logic changes and fixes.

Implementation of registration with unfinished email confirming.
Improved logic of page data fetching. Added events on client. Various
encapsulations. Added noty plug in. Implement contact us logic. Added
logic for hiding pages from non registered and non admin users. Other
fixes and improvements.