added some checks and logging of clientd_id
added oauth libraries, though oauth is not implemented
Merge branch 'client_id'
merge conflict