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
patched setup.rb to fix problems with relative paths and symlinks