Added initial core JS file

Added Queryable class with associated core functions and a prototype to
convert an array to a Queryable object.