Refactored to use latest opscoderl_wm
Use wrq:get_req_header() to extract user id