Moved the account manager to the daemon lib. Added xml to generate account manager and accounts.