Ultimately, I think that is going to depend on how you build your own app. You might have a property that enables or disables functionality based on its "type". Or you could use scripts to include or exclude certain functionality at build time.
When it comes to submitting it to the Marketplace, however, you will need to create two different versions (i.e. a "Lite" version and a paid version).
Please sign in to flag this as inappropriate.