The former rebel commander also declared himself president after weeks of de facto rule.