Made schemas CouchApp

Provides JSON Schema compilation (simplest possible)
based on `extends` property.