Adding log function and tests

This should resolve #2 - Please can you code review @david-hersey @MCooke 

Also while here, tidied up grunt file & package.json by removing things we didn't need.