Improved options handling, create_app stub