Improvements on views. Now user can prepend a CTE (Commom table
expression) on view's definition.

User now can create a single reference containing a expression that
defines the entire view. Once defined the definition expression the view
cannot receive any other references.

Minor improvements on permissions.