Changed directory layout
changed build dir, should still be made variable based on middleware
fixed Makefile and CMakeList, and nodejs files for new dir layout