Create trayfun.vala

Still more work to do, this is just the first working version.