Refactorisation. Fixes #1
connection with server Fixes #2
input forms are saved. Fixes #7
oops