edtlib: refactor some internals Move all the initial settings of instance attributes to the constructor, so we can keep track of them all more easily. No functional changes expected. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>