FIX #46: Fallback to index.js if no main attribute in package.json
Added more require-resolve cases and tests
Fixed code style and try all flow-extensions during module resolving
Reverted unneccessary extra check
Merge pull request #78 from KnisterPeter/master

FIX #46: Fallback to index.js if no main attribute in package.json