Cleanup core module API

* Drop some low level API
* Remove outdated overloads
* Utilize Input/OutputArray
Update documentation
Merge pull request #791 from taka-no-me:cleanup_core_api