Add support for syncing with symlink mirrors

This is needed now that Nerves is moving away from using unionfs file
systems. Also added Apache license.
Add unit test and run in travis