made root factory optional

- made session factory optional

- made authentication and aothorization polciies optional
fix setting authorization_factory
removed leftover ipdb
Merge pull request #29 from fizyk/18-root-factory-configurable

made root factory optional, closes #18