simplify settings a bit
add rest api
added initial restful support