Generic factory factory

Next extension would be to take arrays of attributes to create multiple
models at once, similar to `createThemesFromAttributes`
Works with multiple attributes
Use async map
Merge branch 'master' into factory-factory

* master: (164 commits)
  indicator page header styling
  Remove href from link to stop page jumping
  provisional header fix for IE9
  ballsed up a merge
  Fix styling issus, possibly caused by merge
  cartodb indicator updates now formed by NRT-indicatorator not NRT core app
  Remove commented code
  Modal box finished needs content review
  creates correct URL to query indicatorator
  sign out on hover ready
  Remove IE sass gradient fix as it breaks everything and doesn't fix anything
  Fix unparseable sass filter
  branch for including logout on hover
  fix breaking scss compile with "unquote"
  can update indicator data with cartodb feed
  added links and minor style adjustments
  generates URL to update indicators with cartodb data feed
  Adding imgs of the about page
  Fixes
  theme page includes indicator boxes
  ...
Factories with callbacks
Clean up requires in helpers
Fix Page test broken by new factories
Merge branch 'master' into factory-factory

* master: (24 commits)
  Give stupid, petty parseInt the regex is so direly needs
  Fix failing client test where save wasn't a promise
  Truncate indicator description
  Don't show themes with no indicators
  Make page reload after headline select, tweak styling
  Show description for indicator
  Store short_name on indicator
  Fix instant call of seeding
  Remove console.logs
  parameter selector styling
  Show year in indicator header
  Add headline selector to draft page
  Add select headline date view
  API route for indicator headlines
  Fix bug in page.getParent where it returned the wrong parent :-|
  Persist headline on page
  Show headlines from page
  Correct link back to theme list
  Add before save hook to page to get a headline
  Make getIndicatorData work if no data present
  ...
Merge branch 'master' into factory-factory

* master:
  Don't attempt to truncate indicators with no description
  Remove less-middleware as we're not using it anywhere
Upgrade diorama
Fix choose user view for diorama 0.2.0
Upgrade indicator selector to diorama 0.2.0
Upgrade indicator_view and section_view to diorama 0.2.0
Upgrade report edit and permissions views to diorama 0.2.0
Upgrade sub view assertion helper to diorama 0.2.0
Upgrade report and section views
Upgrade theme view to diorama 0.2.0
Fix visualisation views to render on init
Merge branch 'master' into factory-factory

* master: (126 commits)
  Fix width of input box
  Restrict theme image width
  Correctly strip HTML tags from content when measuring length
  Show saving status when editing indicators
  added requirement to have indicatorator running
  removed unused 'presentation' templates, controller, revealjs library
  Better placeholder for narratives
  spacing on indicator selector
  Fix typo
  Show a placeholder for blank sections
  finished commiting K&A
  salinity
  integrated enterococci
  no more chevrons
  Better display for text editing mode
  Rename primary and secondary to core and external
  up to PM10
  Show theme images
  Make truncate support a length argument, truncate indicator text
  Update sample_themes.json
  ...

Conflicts:
	server/test/helpers.coffee
	server/test/units/page.coffee
Merge in drop table test helper