Last location improvement

There is a bug that the last location was not actually the last, it was
the one before the last. So now the last location is stored correctly.

Minor fix, removing state and code params from auth after returning to
last_location.

Change-Id: Id94c9d4e10bb6d5c334ce3bd1b6285d891075af2
Merge "Last location improvement"