Save the connection paramaters into localStorage

using @agrublev's localStorage module

Note: it also saves the password into localStorage, this
should be further improved to present a simple checkbox to the user
asking if they want to save the password or not