Use HTML5 fullscreen api if available

Added support for the HTML5 fullscreen API.
Handles the various prefixes and only tries if the fullscreen API is
available.