Use firstliney method to retrieve first line for a resource
Don't create new resource objects when passing them to filters

NOTE: This change is highly experimental; it *should* work just fine,
but there might be some weirdness that isn't picked up in the test
suite.
Lazily open basic resources

This causes a problem with file permission detection; I'll fix this
later
Optimization (faster to check flag).

Checking a flag for opening is a lot faster than checking if the
filehandle is defined. Speeds up nytprof target from 7.05s to 4.89s.
Use --noenv for timer targets
Access resource filehandles directly
Fix line endings on output
Make sure we return falsy if open fails
Check for bad filehandle opening
Make sure we mark a resource around STDIN as already open
Report unreadable filehandles
Remove _lazily_open
Remove next_text()
Add docs/stub for open
Only match line terminators at the end of the line
Remove comment about substr magic

I tried it; it didn't increase performance =(
Use an optimized read loop for non-context code

The old loop did all sorts of checking for context stuff even
if you weren't dealing with context.  I added a "go faster" version
for the more common case of not using context.
Inline iterate for printing simple matches

Unfortunately, as nice as abstraction as it is, for performance reasons,
iterate() must die.  This is step #1, and it should be the most common
case.
Return 0 (for # matches) if we can't read a file
Remove useless statement