renamed functions.js to pineapple.js to match namespace

added deprecated_api.js for backwards compatibility

removed onload in favor of on ready
initial namespace rewrite
initial commit of deprecated api
renamed to pineapple