refactoring the code.
pulling $cookieStore references to a service.
pulling Lead specific tasks to a service.
Merge remote-tracking branch 'origin/latest' into latest

Conflicts:
	app/index.html
	app/views/preview.html