Add fallback to get funtion name in IE

IE doesn't support function.name, which we rely on in tails when
generating foreign keys and urls. This commit adds a fallback
where we execute a regular expression over the tostring of a function
Merge pull request #51 from inventid/add-function-name-fallback

Add fallback to get funtion name in IE