Renewable chemical & fuel production in a membrane reactor