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
Merge branch 'javascript_namespacing' into 211_javascript_namespacing

Conflicts:
	includes/js/functions.js
	index.php