Reorg lib/, including introducing warehouse.js

Also:
- Rename cache directory to .meteor
- Rename .meteor/version to .meteor/release
- Change how we tell whether we're in an app directory (motivated by our new .meteor directory)
- Use files.get_core_dir instead of relative paths