Re organised patterns object so it works in IE8 when minified
Tests for extending the patterns
move pattern tests to a separate file
export FormSerializer separately from defining it