Add the htmltemplate concept to ServerSettings

This provides a baseline for starting the
http://tsroadmap.tiddlyspace.com/HTML%20Fixification work
in an iterative fashion, on the deployed service, rather than
needing to get it all done at once.

The value of htmltemplate (defaul '') is added as a prefix
(+ '_') to the name of the template being loaded by the
html serialization.

For this to work the ServerSettings middleware must run before
ControlView, since ControlView uses the serialization directly.

The template loading routines have been adjusted so that HtmlCss
and HtmlJavascript are only loaded under two circumstances:

* no prefix is set (the current mainline behavior)
* the base template name is in a list of CUSTOMIZABLES
  (friendytiddler.html, friendlytiddlers.html, search.html)

The serialization is adjusted so that tiddler_as uses friendlytiddler.html
instead of tiddler.html when the uri is friendly. list_tiddlers
is changed similarly.
Associate a css tiddler with the htmltemplate prefix.

I'm not sure if this is the technique that will stay, but for
the time being it works.

Also adding in an initial structure for the fix1 templates, using
fix1_base.html. This is the template that the rest of the fix1 templates
will extend/subclass.

Unfortunately one of the thing I learned during this batch of work
is that the data being based from tiddler_as to the templates is
redundant and messy. To fix that I will need to change the default
templates, not just the new ones.

The next steps are to create very basic versions of the necessary
templates and then tune them, with help from the likes of @fnd, @colmjude,
@pads etc. I'm fairly agnostic about what the HTML ends up being,
I just know the current set is just not great.

The new set will be (the fix1 prefix is a handy stub):

customizables (HtmlCss and HtmlJavascript applied, as well as a nice
default css (from fix1.css), useful data for UI):

* fix1_friendlytiddler.html
* fix1_friendlytiddlers.html
* fix1_search.html

other (max data, limited or no css):

* fix1_bag.html
* fix1_bags.html
* fix1_recipe.html
* fix1_recipes.html
* fix1_tiddler.html <- non friendly, including revisions
* fix1_tiddlers.html <- non friendly , including revisions
Merge branch 'master' into html-fix-phase1
Merge pull request #1075 from colmjude/master

Add name and version attrs to package.json
Stub in a few more fix1_* template files

Just to keep things moving.
Merge branch 'master' of github.com:TiddlySpace/tiddlyspace into html-fix-phase1
release 1.2.14

* tidied up uris in reply subsystem
release 1.2.15

* 2.8.1 beta 2 of tiddlywiki
Switch to use a clean1 prefix

And have prefixes as directories, not foo_
Basic clean friendlytiddler.html

* limited metadata
* opinions on priority of shown metadata
* visible links to others stuff
* no more!
Set a modifier on the SiteInfo tiddler

Otherwise it can throw errors later.
Add links to / and /tiddlers both in friendlytiddler.html

We need both as they are different.
Simple and clean presentation for friendlytiddlers

We filter the tiddlers being sent to be just those tiddlers
which are not from core bags and sort them by -modified.

This results in a more relevant list of tiddlers being
passed to the template.
Correct tests for changes to /tiddlers output

And correct handling of modifier in /tiddlers
fix typo in link to syndication image
Implement first pass clean1/search.html

Show results, allow easy search again.
Establish the basic api-side templates

Just show the data, nothing else.

Still some tidying up to do.
Only load htmltemplate css on friendly uris
We don't need to worry about "external bags"

They are not _in_ the space, but they can be reached.

So they don't show up in /tiddlers in the first place, so
do not need to be excluded from there.
Merge branch 'master' into html-fix-phase1