Reduce redundant code and allow to initElemnts with a SearchContext.
Furthermore the method initElements returns the page where the elements
initialiazed. This allows compacter code.
Added an example of fragments.
Rename the parameter so that the type is more clear.
Merge pull request #4 from opensource21/fragment

Changes to use SearchContext instead of concrete classes, allowing for generic object instantiation.