Moves external dependencies to "lib" directory.
Bumps version for 0.5.2 release.