Move ipn_main_handler to public dir