Read-only implementation of prepareView

Invoke using the SCHEMA_MERGE VIEW syntax.
Still needs some additional work to allow insert,update, and write.
Merging changes in: prepareView

Conflicts:
	sql/prepare_naive.cc