Allow fieldnames with brackets[]

The code as it was threw jQuery errors when a fieldname with 'array' notation was provided, such as fieldname[2]. Since this notation has many useful applications in PHP (simplified processing of lists) I wrote some code to prevent those errors from happening.
Merge pull request #1354 from infostreams/patch-6

PageSelector should allow fieldnames with brackets[]