Added PageShown and PageHidden Lifecycle callbacks

I also refactored some code, added and refactored tests
Merge remote-tracking branch 'upstream/master'
Corrected some textual explanations, added more "see also" links between the lifecycle annotations
Merge pull request #32 from w0mbat/master

Added PageShown and PageHidden Lifecycle callbacks