Open ID connect

First draft of the Open ID connect implementation, totally incomplete and wrong for now.