PHOENIX-1349 VIEWs do not inherit indexes from their parent

Conflicts:
	phoenix-core/src/main/java/org/apache/phoenix/compile/FromCompiler.java
	phoenix-core/src/main/java/org/apache/phoenix/compile/JoinCompiler.java
	phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
	phoenix-core/src/main/java/org/apache/phoenix/execute/BaseQueryPlan.java
	phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
	phoenix-core/src/main/java/org/apache/phoenix/schema/DelegateTable.java
	phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
	phoenix-core/src/main/java/org/apache/phoenix/schema/PTableImpl.java
PHOENIX-1271 hide tenant column in tenant-specific
 connections (Bruno Dumon)
PHOENIX-1344 fix duplicit values in NTH_VALUE function (Vaclav Loffelmann)