Codebase synchronization with Krypt 0.0.2.rc1
Merge pull request #1529 from abstractj/krypt-0.0.2.rc1

Krypt 0.0.2.rc1 update
Make ThreadContext available
Switch to use resources to get directory entries.

Current jar Dir.entries implementation doesn't return "." and ".." so to keep this behavior in 1.7,
I've moved the "." and ".." addition logic to RegularFileResource. Unfortunately fixing the jar files to
support such behavior would require and invasive refactor of File/Dir implementations to be able to support
expanding '..' in jar file names.
Merge pull request #1526 from ratnikov/fileresource-rubydir

Change to use FileResource to get entries for RubyDir (will follow up to re-add the non-TC initialize methods for backwards compat)
Add backwards compat shims in case Java code is calling these methods
Do not depend on console to properly encode to proper tty-friendly chars on windows if the JVM was started without a console.
Implement EmptyFileResource
Always return same instance
use snapshot version [skip ci]
Use an actual Ruby instance variable in Pathname

* Fixes #1460
* So we are sure to be fully compatible with MRI
* #instance_variable_set must be reflected and redefining it on Pathname seems
  a very bad idea (even though Pathname is immutable without #instance_variable_set)
* We need anyway to add the instance variable for subclasses which access @path
  directly
* An alternative would be to define a YAML deserialization hook
  but we may face other compatibility issues
first step to install default gems on the fly [skip ci]
the second shade-plugin is now used in the verify phase before install since the profiles did not work. i.e. normal mvn package will trigger only ONE shade execution
[skip ci]
install default gems on the fly
fix loading issue with bouncy-castle via classpath: protocol

Conflicts:
	lib/pom.rb
Pathname doesn't have to_path in 1.8
Merge pull request #1557 from ratnikov/test-fix-build

Pathname doesn't have to_path in 1.8
Implement jar directory snapshot caching.

This improves jar globbing performance by about 4x on a simple benchmark.

For a jar containing 9156 files, 5.times { Dir.glob("file.jar!/**/*") } is:

1.7.10: user    1m24.332s
HEAD:   user    0m19.604s
Made the jar caching respect changing of jars on the filesystem.
Merge pull request #1546 from ratnikov/test-cache-jars

Implement jar directory snapshot caching.