(hopefully) wrapped up rails base. starting on angular functionality.