core: added this.options()

- deprecate this.config
- added options util
- update tests

Impact: medium