Update schema to inclure machine api port
Moved various sql methods to Dal, get miner list

Get list of miners to contact from DB
Added partial logging

Added table log to db. Added enum combining loglevel and errorcode.
Logging implementation

added logs calls
todo: if sql error while loggin, write to file
Update db model: log timestamp from int to long
Minerinfo handling, fallback logging to stderr

Example: java -jar Main.java 2> my_fallback_log.log
Merge remote-tracking branch 'origin/AnlysticsJava'