router: add remote query editing support
(still doesnt boot) also some misc changes not related to bpi-r3