added ability to create invalid moments
fixing jshint error from rebase
using NaN instead of 0
fixing conflicts
wip
merging in develop
parse flags
some cleanup
fixing isValid() definition
more cleanup
simplify empty handling
tests and a working isDSTShifted
merge develop
skippedInput + trailingInput = unusedInput
among invalid moments, prefer the first one, regardless of score
tests for invalid date string
pass arrays of languages
use language substrings
adding one extra test
Allow non-formatting tokens to include newlines. Fixes #1151