Added part frontend, part validation

and prevented page-reloads
Merge branch 'master' of https://github.com/ronj/ribs

Conflicts:
	backend/api.js