General Changes (2)

Added define.h and moved definition of RETURN_SUCCESS and
RETURN_FAILURE.  Added code to app.cpp and network.cpp.