Ajax feature

pull this and all other changes (jquery) not related to refactoring into a different branch: http://wiki.koha-community.org/wiki/Using_Git_Cherry_Pick