Merge pull request #25 from nasonfish/master

invoice: when displaying timestamps, use a configurable timezone intead of UTC
invoice view: cleanups from timestamp addition
invoice: log gateway errors
hooks: cleanup timeouts
invoice: add 'active' field to coupon code table
coupon admin: add on/off option for coupon codes
invoice: implement optional credit multiplier if api is in use
vps/jobs: return a structure instead of a list
vps: block deploy on a vps which already has pending work
vps/signup: hide inactive regions
vps: display number of pending tasks if there are tasks infront of another vps's operations in the queue
views: fix up
log widget: use serial data to defer rerendering the widget (thus allowing animation)
views: create a better serial
vps/deploy: revert UI lockout of deploy screen per puffrfish
vps/views: search only last 500 jobs from top of list (to avoid glitched jobs permanently impacting the ui)
views: include pending task count in the serial number
session: Create a session object even when the user is accessing the panel through the API, so we can retreive flashed messages from outside
dns: add a confirmation modal for deleting domain zones
apidoc: change inheritence and other settings for a new in-progress design for the apidoc