Ignore parameters starting with digit in $resource

Currently URLs like http://example.com:8080/some/path
do not work with $resource without tricks because port number
:8080 is handled as path parameter. This commit changes $resource to
ignore parameters that start with a digit. Fixes #1243.