Squashed commit of the following:

commit ae9795948d1d9af8e42ce6475fbc6b91a83e0294
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 14:32:13 2014 +0200

    * write db content ordered to file system
    * add db lock to avoid circular event handling
      on update db

commit 4bcd657c15808139c653b6120eacc44d8a9e9959
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 14:31:19 2014 +0200

    * add playSong event handling to view
    * update main view on playSong event

commit fa10416a3cb99704dd3abe37e9fcbe74fbca5d08
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 14:30:15 2014 +0200

    * fix subsonic plugin by referencing to correct method

commit 6a49e5309c88e81f5336e09e76dc2886de7c826f
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 14:29:46 2014 +0200

    * add optional successCallback handling to writeFile

commit 116fddf773e9e874a33c441423aa23c29d505f4a
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 14:29:13 2014 +0200

    * remove unnecessary event trigger

commit 5df5f9c408b3a5ac31ebab657b1745b906cfe4a0
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 12:30:43 2014 +0200

    * make jshint happy

commit fb7086c7123b9fe7e1ce5d09e93e5b27df9d1d92
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 12:28:19 2014 +0200

    * add jQuery as argument

commit d4317d10b1d0ef4cad5fc164c382611051b270b9
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 12:27:59 2014 +0200

    * remove order from sons db query because we sort
      the db on save

commit 59649cbf44b61cddcc2da82ee86da7ac31843a73
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 12:27:25 2014 +0200

    * sort db on save

commit 90f80d5d1726f6aa1f38081aec803142a63f2fa1
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 12:27:07 2014 +0200

    * trigger fillSongBoxEvent instead of query db and
      call fillSongBox manually

commit 3635df2b7ca2880a80ba2d6d08619fa6311c3f78
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 12:26:24 2014 +0200

    * adjust jshintrc

commit 8dbce47b65bb049f5b028f42746913192887ddba
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 12:26:05 2014 +0200

    * set indent of 4 spaces to js beautifyrc

commit 75e7e392e3a83af39e133bc90a82621d28bce6e0
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 11:28:09 2014 +0200

    * remove limit of database query

commit 4e81c4f2fa8c5c77094e906ee95ea27709c50acf
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 11:27:45 2014 +0200

    * refactor fillSongBox
    * use native Array.forEach instead of ‘for loop’
    * call encodeHtml only once for each entry

commit 3455b5092db43fdff4fa42f19c6d06c0de9e3f26
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 11:26:23 2014 +0200

    * refactor setSongAsFirstPlaylistElement
    * use Array.join instead of string concatenation

commit 43c0e22eb1963c8317fc89569ea207c13931776c
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 11:24:26 2014 +0200

    * code formatting

commit e3e172fd525fc50516d5987278c52b8dd98a988c
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 11:18:43 2014 +0200

    * adjust jshint to use 4 space indent

commit 6e1d965f11ab2bc0a74386b35e0a3b00be349266
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 11:18:23 2014 +0200

    * update jquery to v2.1.1

commit 369ed1b3c21f9a665fb1f510e779d257d491cfd5
Merge: ca68f56 d28fb3f
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Jul 29 09:10:21 2014 +0200

    Merge branch 'refactor/theBigRefactoring' into refactor/view

    Conflicts:
    	app/js/components/lib_core.js
    	app/js/components/lib_view.js

commit ca68f566593ff957938d00573ad1cd17b122380e
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Jul 28 23:13:48 2014 +0200

    * remove obsolete arguments

commit 02ad9b70840374e4f3fb6c5bcdb820bb85a50b45
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Jul 28 23:07:34 2014 +0200

    * split view and core