events: use given resource in emit_one

When is surface resource passed, use this one instead of
d->resources.surface, so that we have support for multiple resources
server: use last surface created as default

Allow access last created surface as resources.surface in display
events: add size array to arguments

When we are sending events via socket (and we will :) we need to know
the size of argument.