Initial functionality

Added API definition. Moved library to "/lib". Added underscore.js