Add 'set location' code

Location is saved as 'properties' between sessions.