Condensed Consolidated Statements of Cash Flows (USD $)
In Thousands, unless otherwise specified
12 Months Ended
Dec. 31, 2013
Dec. 31, 2012
Dec. 31, 2011
Cash flows from operating activities:      
Net loss $ (8,819) $ (756) $ (30,015)
Adjustments to reconcile net loss to net cash provided by operating activities:      
Depreciation and amortization 9,396 7,995 7,079
Stock-based compensation 5,483 3,652 2,442
Revaluation of preferred stock warrant liability 0 0 (554)
Unrealized Gain (Loss) on Derivatives 0 0 24,476
Issuance of Stock and Warrants for Services or Claims 0 0 312
Impairment of long-lived assets 0 949 0
Loss on disposal of property and equipment 9 2 65
Changes in operating assets and liabilities:      
Prepaid expenses and other assets (958) 371 (2,677)
Inventory (1,326) (1,459) (343)
Accounts receivable 1,308 2,788 (7,030)
Accounts payable 747 (177) (203)
Accrued and other liabilities 1,767 (369) 5,446
Deferred revenue 616 726 (5,128)
Related party deferred revenue (444) (10,236) (3,134)
Net cash provided by (used in) operating activities 7,779 3,486 (8,156)
Cash flows from investing activities:      
Purchase of short-term investments (1,001) (2,201) (750)
Redemption of short-term investments 1,001 2,201 750
Purchase of property and equipment (13,534) (6,560) (12,806)
Purchased and capitalized intangible assets (1,585) (1,274) (835)
Decrease in restricted cash 0 0 173
Net cash used in investing activities (15,119) (7,834) (13,468)
Cash flows from financing activities:      
Proceeds from debt 25,000 0 0
Payment of debt (26,514) (804) 0
Payment of selling stockholder offering costs 0 0 (1,389)
Proceeds from exercise of common stock options 2,654 2,433 476
Proceeds from exercise of common stock warrants 0 0 6,376
Proceeds from initial public offering, net of expenses 0 0 49,217
Proceeds from issuance of redeemable convertible preferred stock, net of issuance costs 0 0 24,882
Net cash provided by financing activities 1,140 1,629 79,562
Net (decrease) increase in cash and cash equivalents (6,200) (2,719) 57,938
Cash and cash equivalents at beginning of period 78,283 81,002 23,064
Cash and cash equivalents at end of period 72,083 78,283 81,002
Supplemental disclosure of cash flow information:      
Cash paid for interest 790 1,196 0
Cash paid for income taxes, net of refunds received 8 45 20
Noncash investing activities:      
Accretion on redeemable convertible preferred stock 0 0 8,660
Contract intangible obtained under a derivative liability 0 0 2,842
Issuance of debt in connection with derivative liability 0 0 27,318
Transfer of property and equipment to inventory $ 393 $ 0 $ 0