Refactored authentication. Defined Storage interface, added Implementation for Indetity and Credential. Also extended Factory with new optional values.