Fixed bug with template filling, added examples

Fixed a bug where if there was no template matching the the template
array in json, in the template file it would bomb out.

Added an extremely simple ruby example.

Added some datatypes for ruby and javascript to the type map in the
example map file.