add 'New' button to create and save a new empty pattern
implement 'load' to return last modified pattern to the client on successful authorisation
remove duplication
get rid of login.js by calling google oauth in js rather than including the fancy button (which renders weirdly anyway).