Added compiling mote and simulation apps in base station. Added initial implementation of simulation app.