Move duplicated store logic out.
Remove hostname from config.
Simplify poll API.