Setting up initial cli options and http handlers