Major rewrite to use Apache Derby and Devise for authentication