adding HAP code
Add Authenticate and Challenge to HAP code.
Use hap package's Authenticate and Challenge.