Fix for #45

Fix for #45 Separate subprojects examples, rest and core. See commit comments below.