Add a test case catching ARI-4010: XML parser error due to head insertion before XMLDecl.
FIX allow XMLDecl to happen before HTML.
Fixes ARI-4010.
Merge pull request #40 from vonrosen/ari-3985

Fix for https://webarchive.jira.com/browse/ARI-3985
Followup on d999ae9: add test, remove now unnecessary grouping in regexp.
clean up / refactor JSP rendering code (interim checkin - not thoroughly tested)
  make UIResults, BubbleCalendarData, Partition and UrlSearchResults more JSP-friendly.
  new TextReplayRenderer.buildInsertText() method for common JSP insertion task
  move StringFormatter to UIResults
  use CharSequence to save unnecessary String copy.
  add JSP insert test.
BubbleCalendarData: group Partitions by weeks for less code in JSP. Month property is now take values 0..11
Add test for BubbleCalendarData.
FIX BubbleCalendarData test fails in UTC timezone.
  correct wrong expectations.
  use UTC timezone in all calendar calculations.
add more JSP-friendly methods to BubbleCalendarData and Partition
Merge pull request #41 from internetarchive/ARI-4010

Allow XML declaration to appear before head-insert
Merge branch 'refactor/jsp'

Conflicts:
	wayback-core/src/test/java/org/archive/wayback/archivalurl/FastArchivalUrlReplayParseEventHandlerTest.java
More fixes for https://webarchive.jira.com/browse/ARI-3985