Adds SmartPM protocol logic (readytostart; start; finished, adaptstart,
adaptfinished) to the server and application part
Marks new TODO's