Updated a bunch of components to use new events.
Move prefab building out of main
Remove use of deprecated attr in Klang sample