Remove whitespaces and useless comments
Replace tabs with spaces
Remove not used file
Replace sqlite with postgresql
Squashed commit of the following:

commit f81e64cdfc825f7b62addb701962edb982e655b1
Author: Patrik Bóna <patrik.bona@mrhead.sk>
Date:   Tue Aug 27 19:08:55 2013 +0200

    Rename note.truncate to note.truncate_lines

commit 0ce61e1881ea6709521d761c12e136b5681133ac
Author: Patrik Bóna <patrik.bona@mrhead.sk>
Date:   Tue Aug 27 19:04:35 2013 +0200

    Extract truncate to note model from notes controller.

    However most probably it should not be in the controller anyway,
    but I do not know better place for lines truncate, becase same
    partial is used for both index and show.

commit 1e22c19da1a62e90bb3481a60ce63f8c5f28551c
Author: Patrik Bóna <patrik.bona@mrhead.sk>
Date:   Tue Aug 27 18:56:26 2013 +0200

    Extract search to own class