KAZOO-491: pass along the account id
KAZOO-491: authorize if magic_pathed
KAZOO-491: fix URL structure before magic hashing it