A encrypted wallet can still hold keys which where created when the wallet was unencrypted. Could solve #3314.
This PR will add a 8bit-flags-int to the CKeyMetadata class.
listreceivedbyaddress will report whether the key was generated within a encrypted wallet or if it was imported throught importprivkey.
If this gets conceptual ACKs id like to extend this to the UI level.
