Build configuration improvements

-Using option() instead of set() allows to configuring variables from the CMake's command-line invocation and no manual editing of CMakeLists.txt is required.
-Add BUILD_SAMPLES and BUILD_TESTS options for configuring whether the kNet samples and tests are included in the build.