REST engine done

REST and internal backend class finished