Moved code around.
Show the last 20 rather than 10 log lines.
Added infrastructure to service for location listeners.