Merge RestAPI with basic funcionality

maybe do a first review of all changes files yourself and fix obvious bugs?