use express framework instead of own routing middleware
Mongoose models of configuration
use baucis for REST api
adjusted client to baucis API