Hardcoded functions

Moved the implementation of server_function.js to job-types.js to
conform with the changes. The test have also been moved to a new place.

Added sum (which does simple adding of numbers) and count-primary
(copied implementation, added only the reducer to work properly).

Closes #31.