fix single machine/key view url behavior
move b58_encode outside of generate_backend_id
iterate keys more defensively