Add function privkey_from_user_input.
Renamed cfgfile to wallet.
Add AES support throughout.
Add wallet unit test.
Add core unit test. Add demo mode in main.
Bugfixes in main().