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).
Merge pull request #37 from blostic/JS_#31_available_functions

Hardcoded functions