temporary commit with some ported changes

ported local puzzle storage and checkConnection, still problems with
mustache throwing error