MAINT: Updates copyright year of perf_tracking tests.
MAINT: Removes unused mock data function from gens.utils

This function is unused, and on the general path of moving testing
functions out of gens.utils
 # Please enter the commit message for your changes. Lines starting
MAINT: Removes alternate function from gens.utils

This function is no longer refrenced elsewhere in the codebase.
MAINT: Updates copyright year on gens.utils module.
MAINT: Moves create_trade out of gens.utils

Slight refactoring of moving create_trade so that it's alongside
other testing/mock data utilities, instead of part of the gens module.
MAINT: Uses Transaction object in tests instead of ndict.

So that Transaction object behavior is exercised, uses the Transaction
object in performance module tests instead of ndict.

Also, adds fields to the __init__ of Transaction, to make the
definition of the object more well defined.
adds an optional filter to the algorithm's date_sorted_sources
ENH: Adds an optional filter to the algorithm's date_sorted_sources

So that a filter function can filter out sids on a 'static' source,
when the universe of sids changes.

e.g. when using fetch_csv with a changing universe of stocks.
Merge pull request #114 from quantopian/filter_sources

adds an optional filter to the algorithm's date_sorted_sources
MAINT: Renames parameter to TradeSimulationClient.

Renames from environment -> sim_params to match the type of the
argument passed.

(A refactoring had changed it to SimulationParams.)
MAINT: Removes unused currentValue method on Position object.

This method became unused when vectorizing position totals.
MAINT: Restricts dates to trading calendar in risk comparison test.

Converts the risk iterative and batch comparison tests to use
the trading environments next date, instead of just advancing by day,
so that the returns being passed into the RiskMetrics in the unit
test are using the same trading calendar as the internal checks for
trading days.

Fixes a case where empty return periods were being into
`calculate_period_returns`

Clearing the way for the pandas based optimization of the risk module.
BUG: Avoids install errors caused by lack of pandoc binary.

The pyandoc module throws an OSError of:
"No such file or directory",
when the underlying pandoc binary does not exist.

This error has caused confusion for numerous people during pip
installation.

pandoc is only needed on upload to PyPI to convert to ReST.
So, instead of doing a try/except on the `import pandoc` for all cases,
now checking whether or not 'upload' was invoked when calling setup.py,
so that only maintainers have to worry about installation of pandoc.

By only exercising the pandoc logic when
REL: v0.5.8

- Fixes bug/confusion caused by pandoc conversion in setup.py
- Slight refactorings, removing missing methods, etc.
MAINT: Adds floating point tolerance to risk metric comparison tests.

In preparation of changing how risk metrics are calculated,
this makes the checking of results more tolerant to floating point
rounding, since upcoming changes change the results by a neglible margin.
ENH: use array and pandas operations to speed up risk computations
ENH: Wires minutely emission of data from performance tracker.

Wires up performance tracker so that when `emission_rate` is set
to `minute`, the performance packets are sent out every minute,
instead of once per day.

Please note, the performance packets that are generated are not
ready for prime time consumption, this patch is merely a step towards
hooking up the ability to inspect minute data.

Known issues:
- The packets do not currently include risk information.
  Since we need to consider how this affects the denominators
  of the risk calculations.
MAINT: Updates copyright year on finance module.
MAINT: Moves exchange to utc conversion inside of environment object.

So that the environments' exchange time is used without having to
specify it independently.

Also, moves uses of Delorean.shift for the exchange conversion inside
of environment to use the exchange_dt_to_utc method.
DEV: Handles empty stash case in pre-commit hook.

Handles the case when reword is called and the `commit --amend` invokes
the pre-commit hook, when there is no stash the `git stash pop -q`
in that case leaves the rebase in an odd state.
Fixes by only calling the stash pop if changes were saved.