adds new spark core library

fixes sparkfun/phant#124