Add beginnings of API.  Fix various bugs.

Bugfixes include:
* Search query box on the search results page now matches the table
view, and selects on focus
* Modal delete confirmation dialog now uses bootstraps dialog instead of
jquery-ui
* Filesize displays properly in SVN list view now.  Replaced date
modified with author.