Return server instance when starting preview

Fixes #196