new schema check

- replaced lib/schema.js
- deleted test/jasmine/test_session_schema.spec.js
- added test/schema_test.spec.js