Avoid duplication in curses attribute lookup.

  This means we recycle the existing code to turn "bold" into
 A_BOLD, etc.

  Renamed lookup_highline_attribute since it is now no-longer
 highlight specific.

  This updates #175.
  Removed debugging function.

  Closes #175.