Fix metadata_server_port to return proper port

Also make it more testable by allowing an optional path to be passed in
Add tests for cfn_helper.metadata_server_port
Merge pull request #44 from SpamapS/master

metadata_server_port is broken and cfn_helper has no tests