Move network creation and management code to lib

The network creation and handling will be done by code in lib. This allows to
have a libmoment in future.  The actual network preparation and configuration
will be done in src/*.cu files.  The library will be tested by files in
test/*.cu.
Separate types and kernels into their own modules
Add Make targets for the tools (fourier/format/freq-gen)

Move the source files for the tools to /src.  The /test directory should in
theory, only contain code that tests code in /src.
Test binaries in /test/build and not in /build
Kernels rewritten for use with C++ style Network class

* Include minor tests for the same.
* Add makefile target for the test.
Spring-cleaning: ancient tests and empty libs

* Makefile bug test/ and not tes/
./build/format supports evaluating integers

* also add help message