Implement locations auto collecting (in background too)

Signed-off-by: Andrey Zhdanov <andrjufka@gmail.com>