1. The `redirect_uri` for a web application always must use the scheme `https://` The URL should be the path of your application--whichever handles the response from the OpenID Provider. That program will need to obtain the `code` and `state` from the response. Remember, the login and logout call use the front channel (browser), and the token and userinfo calls use the backchannel (i.e. oxd does these for you).
2. Definitely use a client library. This will make it so much easier. Usually only client developers call the API's directly. For example, if you're writing a new client for some new programming language, you'd call the API's. Otherwise, it's too much work--use the libraries!