Refactoring; moving ThingSpeak to libraries.