Added local storage functionality

Devices that are added to the gear box are now inserted into the Web SQL database. This database is loaded on page start up and refresh, so added devices always stay in the gear box.