Equivalent for .close and .setLogoutUrl in beta2?

After switching from Alpha 3 to Beta 2 I’m searching for a way to do something like application.close() and application.setlogoutURL but can’t find any. What is the new way to do this?

Hi, these features should be re-implemented in one form or another before the final.
Ticket 9859
tracks the issue.

Thanks for creating the ticket.

Implemented in beta 5. A mini-tutorial is available:
Handling logout