Support setting AdeptHub URL via ADEPTHUB_URL
Code cleaning
Code cleaning