Fixed two problems

@pmliju was having a jQuery problem with:

***Error: Syntax error, unrecognized expression: <li data-name="db-config (14).ini" class="thumbnail">***
                        
        <div class="caption">
            <span class="filename">db-config (14).ini</span>
            <a rel="tooltip" title="Download Original" class="download thumbnail-action btn=" target="download" href="&#x2F;uploads&#x2F;.&#x2F;&#x2F;originals&#x2F;db-config%20%2814%29.ini"><i class="icon-download"></i></a>
            <a rel="tooltip" title="Delete" data-action="delete" class="delete thumbnail-action btn" href="#delete">
               <i class="icon-trash" style="background-position:-456px 0;"></i>
            </a>
        </div>
    </li>


This problem was occurring because of the whitespace in the contents of the file. Somehow this error doesn't show up for everyone (for me it worked) but since adding the {% spacess %} block doesn't harm anything it doesn't matter and fixed it for @pmliju.

Next to that, also with this pull-request it's possible to set the maximum_number_files as a setting when you are calling handleFileUpload method from the service.