[db] Modifed the way grep outputs are saved and searched

+ A new table grep_outputs is added to schema
+ All unique grep matches are saved in that table
+ A many-to-many relationship is established between the grep matches and transactions table
+ Only transaction per unique match is fetched when requested
[proxy] Changed run to pseudo_run

+ Loggers from parent process are available to children, so inorder to remove console logging reliably, proxy process is created like any other owtf process
[interface] Added a jquery spinner to indicate the loading of plugin report. This will help user to understand that operation is in progress
[interface] Added spinner to transaction log, to indicate when search is happening
[api] Added db manager for errors and api for making it accessible from interface
[interface] Fixed two bugs in command dump plugin output

+ readlines() doesn't strip '\n' so we should join directly without using '\n'
+ longOutput boolean must be calculate before joining back the lines
[db] Fixed a bug in match transaction count

+ The relationship between grep results and transactions is many-to-many
+ Since we are trying to count the number of transactions with atleast one match,
we must group the results by transactions to avoid multiple entries of same transaction
[interface] Force wrapping in pre tags using custom classes wrappedPre & commandPre
[plugins] Fixed the semi passive plugin for testing cross-site flashing
[plugins] Fixed semi_passive & passive plugins for Spider, Robots
[transaction-logger] Fixed a bug in transaction logger

Since we are accessing db to deduce target id for a request, no use in
populating a dictionary by accessing db early. A try catch can be used
[bug] A file left out in previous commit
[interface] Fixed up command suggestion box
[db] Shift from sqlite3 to postgres

+ DB settings will be in user home at default location of ~/.owtf/db.cfg
+ DB setup help script is added in scripts/db_setup.sh
+ Transactions, Urls, Plugin Outputs, Grep Outputs & Command Register are now linked to target instances
+ target_required decorator added to add current target value to target_id optional parameter
[install] Added db_config_setup to distro-independed
[interace] Temporarily disabled vuln db explainations from db
[db] Major changes to the way sessions are used in db managers

+ Session is now one per process which can be accessed at Core.DB.session
+ A new Session is created whenever a new owtf process is created since
same connection to db cannot be used by two processes
[db] Implemented sessions and added control in interface

+ Sessions are not serious stuff, ie sessions are only used to filter targets returned by API.
+ Since control flow starts from selecting target(s) in interface this is more than enough
+ Targets which are not in current session will not be visible in target manager but can be accessible
by direct reference
[interface] HTML escape the configuration values (#308)

Some configuration values might contain special HTML characters such as
proxychains:

    PROXYCHAINS_COMMAND: echo "@@@PROXYCHAINS_CONFIG@@@" > ./proxychains.conf; @@@TOOL_PROXYCHAINS@@@

Which contains special `>` char.
[interface] Use textarea when config is multiline.