Fixed extension package creation

It was all kinds of broken
Fixed extension package creation

It was all kinds of broken
Renamed all instances of module to extension
fixed my conflicts
Merge branch 'fix_ext_build' into module_to_extension
xcore cli tool fully operational.

We can now run "xcore build all", "xcore build client" and
"xcore build database" with arguments. Currently replaces
required functionality provided by xTuple's build_app.js
We still need to write the help docs for the tool.
Rewrote command processing

Added support for super common flags (e.g. -v for version) that are
likely to be assumed by most *nix users.
Also made command (args._) parsing more straightforward and easier to understand.
converted xcore lib file comments to js doc comments
more comments
fixed
added notes for unreconciled comments
Update client.js
Merge pull request #16 from pangea/js_doc_comments

Js doc comments
Merge pull request #14 from pangea/script_cleanup

Rewrote command processing
Let's not expose an REST API for now
Require passport for LDAP auth
Merge branch 'master' of github.com:pangea/xcore
Merge branch 'master' into module_to_extension

Conflicts:
	scripts/xcore
Merge branch 'module_to_extension'
Merge branch 'master' into scaffold_script

Conflicts:
	scripts/xcore