Added class Json/JavaScriptPrimitiveConverter.cs as an abstract base class along the same lines as JavaScriptSerializer.cs, but where the serialized value is simply an 'object' and not an 'IDictionary<string, object>'.
Updated Json/JsonSettings.cs to store a list of JavaScriptPrimitiveConverter objects in a list exposed by new property PrimitiveConverters.
Added a field _primitiveConverterList to Json/JavaScriptSerializer.cs to store a list of enumerable sequences of primitive converters, along the same lines as _converterList, added accessor method GetPrimitiveConverter following the same pattern as GetConverter, and added RegisterConverters overloads that accept sequences of JavaScriptPrimitiveConverter implementations and registers them.
Updated the JavaScriptSerializer constructor that accepts a parameter "registerConverters" to actually pay attention to it.
Updated the ConvertToType method in Json/JavaScriptSerializer.cs to check for a primitive converter before doing any other analysis
Updated SerializeValueImpl in Json/JsonSerializer.cs to check for a JavaScriptPrimitiveConverter in the owner JavaScriptSerializer object after all other serialization, but before emitting the value. (This places it in the same point in the pipeline as in deserialization.)
Updated Responses/DefaultJsonSerializer.cs and ModelBinding/DefaultBodyDeserializers/JsonBodyDeserializer.cs to register primitive converters in addition to regular converters when initializing the JavaScriptSerializer that will be used to serialize or deserialize request/response data.
CookieBasedSessions: Don't parse decrypted bogus data

If the cookie contains data encrypted with a different key, the decrypted
string may still be semicolon-separated without actually containing key-value
pairs. Check that a part is a true key-value pair before trying to use its
value.

Fixes #1083
Turn unit tests back on
allow custom JavaScriptSerializer to be used for JsonBody serialization
Updated SharedAssemblyInfo to vv0.23.0
Updated SharedAssemblyInfo to v0.23.0
Moved ITextResource from NancyModule to NancyContext

This change makes tranlations available everywhere that the
context is available. The Text property of NancyModule is a
helper wrapper around NancyContext.Text
Added indexer on TextResourceFinder

Resolves #1531
Moved NancyOwinHost to Nancy core
Added extensions for the new delegate-based approach (IBuilder.UseOwin etc.)
Added missing documentation
Renamed NancyOwinHost to NancyMiddleware
(re)moved using statements
Merge pull request #1544 from khellang/owin

Move NancyOwinHost to core.
Ignoring case for Secure or HttpOnly sections of the cookie header.
Merge pull request #1562 from DarrellMozingo/CaseInsensitiveCookies

Ignoring case for Secure or HttpOnly sections of the cookie header.
formatted stringbuilderextensions
Merge pull request #1563 from jchannon/appendtidyup

Formatted stringbuilderextensions as the formatting was out
Prevent ArgumentOutOfRangeException on empty cookie

An empty cookie would cause an ArgumentOutOfRangeException (edge case).

Correctly prevent ArgumentOutOfRangeException on empty cookie

Change the statement to actually prevent it ;)

Added test for empty cookie
Merge pull request #1564 from mloenow/patch-1

Prevent ArgumentOutOfRangeException on empty cookie