Add viewport definition
Fix up the headermeta partial file
Change event dispatching to now require callbacks