Added code to create the job template and G3CPie "controller" file when the job is launched.

(cherry picked from commit 5b8b06575cc5dd1055310b85c3b48e9ed90190b6)

Conflicts:
	create_job.php
	inc/Job.inc.php
	run/QueueManager.tcl
	run/testSocketClient.php
Moved the G3CPie controller from the user's folder to the run/spool folder. This way the G3CPie controllers of all jobs will be saved to the same location.

(cherry picked from commit 80fc6cbeb3bf1c7045deedffbd5dc176e17e386e)
Move code to run and monitor a job into run_job().

refs #133

(cherry picked from commit 3bb6d41c2f8a4e58cd76ad3b7413538fefb846d6)
Monitor and dispatch jobs from a spool directory via pyinotify.

This is the first and very rudimentary working version of a Queue Manager using
an extremely simple sequential processing model on a single GC3Pie resource.
Jobs are submitted by placing new files in a spool directory where they get
picked up by the Queue Manager.

Closes #133

For complaints, please refer to xkcd:323.

(cherry picked from commit 829041b3fb92711179f204dfb79f24540a1bdf74)
Add HRM module, currently containing the JobDescription() class.

refs #130

(cherry picked from commit c2ba9203b353f22d34551752b7a2e8d8c2331c31)
Use JobDescription() from HRM module for parsing.

refs #130

(cherry picked from commit fca7d27031ce664d442b965b41aa005f282bdcf7)
Be more consistent and PEP-257 compliant with docstrings.

(cherry picked from commit c137c06b7d36b6a84102a9cf76fb68cf19b5b7b0)
Don't mix printing and logging.

(cherry picked from commit f6583a4d18f4d802462608dc8473b8a7394080fc)
Add stubs for missing gc3 application types.

refs #130, #137

(cherry picked from commit 2b22ce692cf075862c7a93d9d38ff7a6fc7f303a)
Remove leftover import statement.

(cherry picked from commit 387a4fd818d67b7a5d33183fc8edce742d027d68)
Ignore Python bytecode files.

(cherry picked from commit beaee0f8b47c7f3d81db186e925e7e17e82ab9ba)
Move testing error configs to separate directory.

refs #122, #130

(cherry picked from commit dc8e9ade4c69a30b39a58db69d7d7571ea7d8ed9)
More testing error config files.

refs #122, #130

(cherry picked from commit 811c823e8e5748a10f4b4c744ab9d8a32c8dafe7)
Use 'ValueError' instead of common base 'Exception'.

(cherry picked from commit aad45eb2899c413475ffbadb0b7926cc0d31b76e)
Be more robust and use better variable names.

(cherry picked from commit 0f35eb7041775b7f091db635ae7e61571daf3471)
Very basic test script for 'HRM.py'.

(cherry picked from commit c7c6cf1a8a5349609bd9761a777ede6d9cea9bc9)
Print information about new jobs.

(cherry picked from commit 56ff6ba62d8ef020f6566e437a56da3904bca57c)
Use pprint library for printing output.

refs #130

(cherry picked from commit 8a5fedc9ff97d5eed1e06229a8500176ef4644ac)
Inherit from "dict" instead of generic "object".

This allows to use the inherited functions for get/setitem and repr, so we
don't have to redefine them.

(cherry picked from commit eb3566a9526216518c1167f2ae03de83edae8ede)
Add ToDo (check for gc3pie config).

(cherry picked from commit b9a31b7e8e9b862a8077d4027567f3de27878cd3)