* increase deployment target to 4.0 because that's the minimum required for file encryption
* encrypt wallet file
* improved logout function