Strip search query of trailing spaces. Fixes #614.
Minor style fixes.
Show parliament period name in promise search results.