return 404 for missing tags and functions.

https://github.com/cybersonic/railodocs/issues/6

Also hooks up the API stuff allowing a .json prefix to return the json for the tag or function.