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
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
Merge branch 'master' into factory-factory

* master: (116 commits)
  Stop doing hard stuff on every request
  Change metadata to use 'indicator' rather than title as a row
  Data downloads include the metadata as well as the data
  Protect entire site with session authentication
  Handle cases where indicator has associations and fields missing
  Make a basic version of indicatorSchema.methods.generateMetadataCSV pass
  Add indicator.generateMetadataCSV tests
  Send back indicator data as a zip file (so we can include a citation)
  Send back indicator data as a zip file (so we can include a citation)
  Make CSV downloads have a filename
  Make CSV downloads have a filename
  Make tests pass for new diorama RC
  Upgrade to another Diorama release candidate
  Define verbs outside of method so that they're not initiliased for every request
  Disallow any unauthenticated API requests that are not GET
  Add ESRI leaflet to tests
  Fix table test by using strings (which aren't auto-rounded)
  Block indicator data query in tests thru stubbing
  Don't use bodyParser as we don't need file uploads, and it's a security risk
  Fix styling for map view
  ...
Fix Page model tests by passing in indicator associations
Merge pull request #131 from unepwcmc/factory-factory

Factory factory