Improve command line history and add a function to strip trailing whitespaces automatically.

Allow you to use up and down arrows to flip through command history for
each specifc command.

It is the same function - StripTrailingWhiteSpaces() - that can be found at vimcasts.org. Remove all annoying trailing whitespaces automatically.

- Move .inputrc to bash directory.
- Create a function in Makefile for linking .inputrc.
- Place the function StripTrailingWhiteSpaces() before sourcing custom
  configurations and put its call in resCur group.