aws-elasticbeanstalk: symlinks, patch setup.rb

removed *.cmd files in ./api/bin/
symlink ./api/bin/*
symlink ./api/lib/*
added require 'pathname' gem to setup.rb
patch fixes problems with relative paths and symlinks

closes #19040