[#51886407] Create user

Squashed commit of the following:

commit 1d543dfe373cda3c93885dda6508bf78a94d7da5
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Jul 1 13:46:19 2013 +0200

    wip

commit 0838e1a6830bcaa25d54ab06fa3c417b36e3ef0c
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Jul 1 11:02:56 2013 +0200

    Fix bug in error handling

commit 7d953d55d33c3fc45ffc8bbb2339d2a7ff473f03
Author: Sebastian Pape <email@sebastianpape.com>
Date:   Tue Jun 25 14:47:37 2013 +0200

    [#51400905] borrow search

    Squashed commit of the following:

    commit c590050edf2c305958cb0cfeb05f90ebcbf73c9f
    Merge: dc32628 78cf947
    Author: Sebastian Pape <email@sebastianpape.com>
    Date:   Tue Jun 25 14:47:20 2013 +0200

        Merge branch 'next' into sp_borrow_search

        Conflicts:
        	app/assets/javascripts/_NEW/borrow/controllers/models_index_controller.coffee
        	app/assets/javascripts/_NEW/borrow/controllers/models_index_search_controller.coffee

    commit dc32628d45eba2656bedce60149348b3f9a09cf4
    Author: Sebastian Pape <email@sebastianpape.com>
    Date:   Mon Jun 24 15:24:06 2013 +0200

        finish implemenation of search

    commit a851c7522ecb451e00eeaad1a3a139db349d5572
    Author: Sebastian Pape <email@sebastianpape.com>
    Date:   Mon Jun 24 11:20:54 2013 +0200

        continue

    commit 2e9793a0861e87975c2075e54facda4ecc9c5637
    Author: Sebastian Pape <email@sebastianpape.com>
    Date:   Thu Jun 20 15:55:06 2013 +0200

        continue topbar search

    commit 62d11cb7b75fed0a3631b69fc86a0cc1309e87cc
    Author: Sebastian Pape <email@sebastianpape.com>
    Date:   Thu Jun 20 11:20:59 2013 +0200

        continue search

    commit c288fc7be8781cb5abc7d8dcfe31864f2f296b56
    Author: Sebastian Pape <email@sebastianpape.com>
    Date:   Thu Jun 20 08:11:22 2013 +0200

        continue topbar search

    commit 47de41219b3865d2b5b3db17f88fc5b8a18f6898
    Author: Sebastian Pape <email@sebastianpape.com>
    Date:   Wed Jun 19 15:15:25 2013 +0200

        continue search

    commit 058073afada8961ee07b05a14b381b8ae2eefa11
    Author: Sebastian Pape <email@sebastianpape.com>
    Date:   Wed Jun 19 14:21:54 2013 +0200

        move the set_paginated_header to the borrow controller to acces it from every borrow controller

    commit b6e860374c14f24f951646d80f6d0bd7f168f74d
    Author: Sebastian Pape <email@sebastianpape.com>
    Date:   Wed Jun 19 14:17:56 2013 +0200

        starting the borrow search feature

commit 6c809396bd8b85f5256741abe4d3692f921392b1
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Jun 28 17:19:50 2013 +0200

    Tests wip

commit f61ff819603ff511973c01122eba85f5c30567f0
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Jun 28 14:20:20 2013 +0200

    Delete user tests

commit debe99f58cb5dfe026758f942e9ab6c49af7a791
Author: Sebastian Pape <email@sebastianpape.com>
Date:   Fri Jun 28 15:54:06 2013 +0200

    test outlines for changing access

commit 22cc179d4640cb1dab4297e07b29b6a96593cda7
Author: Sebastian Pape <email@sebastianpape.com>
Date:   Fri Jun 28 15:46:17 2013 +0200

    remove console log

commit a649c2470b2af14ef13fac3639762300def8ea70
Author: Sebastian Pape <email@sebastianpape.com>
Date:   Fri Jun 28 15:03:51 2013 +0200

    implement admin user index search

commit 82e83cef64d991b1bc815771a3f870a43951d254
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Jun 28 13:47:49 2013 +0200

    Delete user

commit 7730da272465649033dda03b265c43dc3dc865af
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Jun 27 17:47:55 2013 +0200

    wip

commit e33615b421abbaf3140570a8b46b8572518c86e8
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Jun 27 17:47:55 2013 +0200

    wip

commit 6aad17e0f43131a7b9f8edac0ea7da3fe3402ce3
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Jun 27 11:59:45 2013 +0200

    Administrator tests

commit ea382e2b99a4e8f14ece8bfe1e0978590cb11d5e
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Jun 26 18:01:37 2013 +0200

    wip

commit 2b713829093fa1b7e6d15b0d32ffffb9f74be911
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Jun 26 16:37:46 2013 +0200

    Further enhancements

commit 217fb1abc686b4e9ea54d4e140d904415ed7fb33
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Jun 26 10:58:58 2013 +0200

    Handle access right improved

commit 64dad4da10d29546bb3c48abeec6ad0eb128e4ad
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Jun 26 10:17:05 2013 +0200

    Fix wrong handling of non existing access right

commit 69815c7b83fda6d4334144d08d4ccedec3a75cee
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Jun 25 17:12:27 2013 +0200

    changes in gemfile undone

commit 5deef717b18e7d0a3ce0f8369c530a7e346e3e2f
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Jun 25 17:04:28 2013 +0200

    Remove role from user WIP

commit e4780a5edb61c117652ec4237953416589b01b9e
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Jun 25 16:36:07 2013 +0200

    Active tab

commit 3f9b1229212436cdafa40a45b46e5fd0ded7a533
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Jun 25 16:16:02 2013 +0200

    Pagination

commit d665dab95a1de19c4c4b8c4c9a70018b3f47fed4
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Jun 25 13:55:33 2013 +0200

    Index view outside of ips

commit 659a3b60a85e730aac834685cd8678f5b89ceb2f
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Jun 25 12:04:04 2013 +0200

    small change

commit c03b3d92357bc26b3997354380babf770ee49351
Author: Sebastian Pape <email@sebastianpape.com>
Date:   Tue Jun 25 12:01:58 2013 +0200

    fix angular problem

commit fe6959dd871f77fd087af4c7fae17ba0a551c4a9
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Jun 25 11:38:10 2013 +0200

    check access right in ang controller

commit 144af865460595ca12e48751289a8a0e68315b1e
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Jun 25 11:21:04 2013 +0200

    Assigning admin role outside of ip

commit 3ae86d4dc527bb65b414712d91404229b654ae78
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Jun 24 17:28:14 2013 +0200

    Admin WIP

commit 1aa739ca699eb8fe81b562c96767a0b8efb326b9
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Jun 24 16:04:24 2013 +0200

    New view outside of ip WIP

commit a90e6c9d5994d8fac5e48b9f1d61b3c40bfd8f25
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Jun 24 13:01:33 2013 +0200

    Fix navigation tabs for create action with errors

commit 3cfc2e84598b81809218f7a61d15d3043a312792
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Jun 24 12:35:22 2013 +0200

    Second test

commit d7ce04dce4303ee94164c919d6c8a8420b349495
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Jun 24 11:24:43 2013 +0200

    def create improvements

commit ae0dfd217e55ea9d0f2dfe45e9924b8107032018
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Jun 24 11:15:22 2013 +0200

    First test

commit eda2c99f604ee6d6f118d28e4a97e6fe7315add9
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Jun 21 17:40:45 2013 +0200

    Tests wip

commit 33dc3fdd3543cd11465ea7054c297715e978c3e5
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Jun 21 13:59:52 2013 +0200

    Validations, errors, other enhancements

commit 99349b46c9b3768bb111ed748b92310ba7b591f5
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Jun 21 10:42:16 2013 +0200

    Further frontend work

commit bb6f07f66a406a8479d33d69d142912d801e18b6
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Jun 20 16:00:44 2013 +0200

    Group management wip

commit 3850e1c383abae779e04b585b3e891e77e4c6bee
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Jun 20 15:26:49 2013 +0200

    Frontend controller

commit 49e88664b94ff770fa93a843baca5d061ca95d93
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Jun 20 13:49:30 2013 +0200

    Backend / frontend integration wip

commit 3db97a101e21f139aff0e424b79772453e83631e
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Jun 19 17:07:11 2013 +0200

    Create user view wip

commit 2e385ed21d18046da8dc80a45ffb6364543045c5
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Jun 19 16:09:24 2013 +0200

    Button new user