Added weights.  Old unit tests pass.  Weights untested.
Added tests for weight functionality and fixed the bugs found by those tests

Also added code to deal with 1d input arrays for X argument in Earth
methods.
Merge pull request #39 from jcrudy/weights

Merging in weights feature.  See issue #39.