Moved function from header to cpp file.
Also install FADBAD++ headers.
Clean up CMake files.
Added serialization support for Functions.