Fixed locale calls in format helper

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Added custom model based session backend support

Signed-off-by: Tom Wright <tom@inflatablecookie.com>