Add dependencies to project file.

src.pro was using CONFIG += ordered, changed to specify proper
dependencies.

Include documentation snippets and build them by default. Fix broken
documentation snippets.

Change-Id: I550db3844e77e0ea52e697a3946720f770f6c9b6
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>