Got a main template file working. Also got proper persistence working for the localstorage stuff