add set_user_locator directive

This is a directive for setting the user locator, as per #112.