Add auth and db to connection, change 2nd post route

The 2nd post route now has /title/ before the slug, as RethinkDB uses a
UUID for ids, so having a numeric route would not work.

Also, small typo fix on index.html.
Update nodejs example to match python example
Update Ruby example to match other examples

Includes various ruby syntax fixes.