Bug 897254 Implement 'pageshow' event for tabs for fennec

Also involves pulling out tests from FF to common, so they can be used in both platforms.