Added reporting of app launches.

Also allowed event category to be specified in function calls, rather than set to "app" automatically.