[PATCH v6 1/3] Move bootorder and bootoption apis to lib