Source File Upload Tests

Add Uploaded source files testing. Handles success and error case.
Exception located in error cases, these tests are expect fail.
Added a 'Critical Error' check to BasePage and some hard defaults
for the document storage dir.
Added an action to delete the stored files on database reset.
Slight modification of ids in Source Documents pages.
Add too-large upload file test

Test for files that are too large to upload.
Fix up code review issues in Source Upload testing

Mostly blank lines and readbility.
Update UploadTest on review comments

Don't use globals for elements that may not exist.
Clear cached data between functions.
Wrong licence year.
Also added a test step for verifying the file is saved to the intended
location.
Use a generator instead of static files for testing

Rather than dumping a bunch of files in a dir, just use a generator
to create temp files.
Add a few more Upload tests to make use of this.
Completely clear and rebuild the h2 database on reset

The sql backup procedure for the first run scenario writes the
sequence lines without the "if not exists" clause, so subsequent
runs can fail - especially after the user has executed some
tests manually.
Drop all items from the database and either restore a base from
the backup or a complete database with test data.
Remove leftover test files from previous commit
Update database table count and data generation script

Table count is now 81.
Two Transmemory _METADATA tables have been dropped.
Fix up the precondition assumptions.

Test setup failure causes exception, test behaviour failure asserts.
Also add commons-io dependency for test generator.
Tell Arquillian to use Seam 2.3.1
Reduce exception logging during startup and tests
Update to api 3.1-SNAPSHOT; work around Seam RESTEasy problem
rhbz1007106 - Correct error when signing up with open where the open id username is the same as an existing Zanata user name.

Also remove some default values for username and email when using open id as they might be invalid.
Merge pull request #176 from zanata/seam231

Tell Arquillian to use Seam 2.3.1
Simplify annotation check
Fix sign in for OpenID enabled server.

The functional test Zanata server has OpenID and internal auth
enabled, which changes the login process. Basic internal
sign in still only available.
TODO: Tests for OpenID login.
Merge pull request #177 from zanata/use-api-3.1

Update to api 3.1-SNAPSHOT; work around Seam RESTEasy problem
Merge pull request #171 from zanata/test-logging

Reduce exception logging during tests
Update open id artifacts
- remove unused try/catch to match with updated method.
Merge pull request #178 from zanata/rhbz1007106

rhbz1007106 - Correct error when signing up with open where the open id username is the same as an existing Zanata user name.