added optional schemaCallback to resource
Merge pull request #16 from flyvictor/schema-callback

Added schema creation callback