Pull generic code into its own lib

Break appart Weather and Stocks now JSON is seperate
Fix url encoding for yahoo stock api
Provide more info on Xively datastreams
Merge pull request #2 from ejs/master

Refactor shared code and make requested changes