adding rake task for upgrade
fixing bugs
modified apipie entry to allow nil providers
adding rake task to drop bundle from db. Updating apipie params to allow nil sub_id for a measure
Merge branch 'upgrade'

Rebasing and merging pull request #167