Replaced a query with a use of will_paginate's .total_entries
Made .gitignore more specific so junk can't hide in subdirectories