Start writing functions

The aim of this pull request is to start some discussion.

1. opinions on docstring formats?
2. data formats - is everyone happy to use a Quantity array to contain the inter-spike intervals, for example?
3. warnings and NaN - coefficient of variation of inter-spike interval needs at least two spikes. If there is a single spike in the train, I have chosen to return NaN, but should we raise an Exception, or at least a warning?
I agree, but unfortunately, this triggers a bug related to https://github.com/NeuralEnsemble/python-neo/issues/166

Setting the units attribute directly appears to work (the unit test passes), so I propose to leave this as is until the next Neo release.