bug 876730 Refactored the set_base_data decorator to pass a default context into the views that need the product and versions. r=peterbe

- Removed the context processor and added pass_default_context decorator
- Stopped attaching random state to the request and rely on it somewhere else
- Fixed some minor cosmetic issues while I was there.