Confirm Dialog and Pin caching

Card pin is now cached. Expiry of this pin still needs to be added. Refactored
dialogs to seperate directory.
Detect card automatically