Fixed failing server test + added gitignore

There was a failing server test due to the optional parameter in file
not being set correctly.
Also added the gitignore file so packages, lock file, etc not included
in file list.